From aa1749a182b9109c4937f76958f90e48cd798ebc Mon Sep 17 00:00:00 2001 From: Jens Pots Date: Wed, 1 May 2024 14:16:26 +0200 Subject: [PATCH] fix: all processors use the same logging device --- src/main/kotlin/logging/Log.kt | 2 +- src/main/kotlin/runner/Processor.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/logging/Log.kt b/src/main/kotlin/logging/Log.kt index c695c8a..c3f65f4 100644 --- a/src/main/kotlin/logging/Log.kt +++ b/src/main/kotlin/logging/Log.kt @@ -6,7 +6,7 @@ import java.util.TimeZone import kotlin.Exception import kotlin.system.exitProcess -class Log { +class Log private constructor() { init { val header = listOf( "TIME".padEnd(12, ' '), diff --git a/src/main/kotlin/runner/Processor.kt b/src/main/kotlin/runner/Processor.kt index 86cb878..2ec4852 100644 --- a/src/main/kotlin/runner/Processor.kt +++ b/src/main/kotlin/runner/Processor.kt @@ -9,7 +9,7 @@ abstract class Processor { * the template class. This logger is created with the name of the class * which extends the template. */ - @JvmField protected val log = Log() + @JvmField protected val log = Log.shared /** * The arguments of a processor are stored in a map and can be accessed by