Skip to content

Commit

Permalink
fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
oshai committed Aug 9, 2023
1 parent 241d7b1 commit a8f6b4a
Showing 1 changed file with 4 additions and 24 deletions.
28 changes: 4 additions & 24 deletions src/jsTest/kotlin/io/github/oshai/kotlinlogging/SimpleJsTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class SimpleJsTest {

@AfterTest
fun cleanup() {
KotlinLoggingConfiguration.APPENDER = ConsoleOutputAppender
KotlinLoggingConfiguration.APPENDER = ConsoleOutputAppender()
KotlinLoggingConfiguration.LOG_LEVEL = Level.INFO
}

Expand Down Expand Up @@ -47,29 +47,9 @@ class SimpleJsTest {
var lastMessage: String = "NA"
var lastLevel: String = "NA"

override fun trace(message: Any?) {
lastMessage = message.toString()
lastLevel = "trace"
}

override fun debug(message: Any?) {
lastMessage = message.toString()
lastLevel = "debug"
}

override fun info(message: Any?) {
lastMessage = message.toString()
lastLevel = "info"
}

override fun warn(message: Any?) {
lastMessage = message.toString()
lastLevel = "warn"
}

override fun error(message: Any?) {
lastMessage = message.toString()
lastLevel = "error"
override fun log(loggingEvent: KLoggingEvent) {
lastMessage = loggingEvent.message!!
lastLevel = loggingEvent.level.name.toLowerCase()
}
}
}
Expand Down

0 comments on commit a8f6b4a

Please sign in to comment.