Skip to content

Commit

Permalink
fix: all processors use the same logging device
Browse files Browse the repository at this point in the history
  • Loading branch information
jenspots committed May 1, 2024
1 parent c0802f6 commit aa1749a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/kotlin/logging/Log.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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, ' '),
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/runner/Processor.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aa1749a

Please sign in to comment.