Skip to content

Doesn't print correct logger name with kotlin-logging-js 4.0.0-beta-19 #279

@xuanswe

Description

@xuanswe

Code

class MyClass {
  private val logger = KotlinLogging.logger("MyClass")
  // private val logger = KotlinLogging.logger() // same issue

  fun myFunc() {
    logger.debug { "myFunc" }
  }
}

implementation("io.github.oshai:kotlin-logging-js:4.0.0-beta-19")

Output in Chrome console: DEBUG: [DEBUG] myFunc

implementation("io.github.microutils:kotlin-logging-js:3.0.5")

Output in Chrome console: DEBUG: [MyClass] myFunc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions