koin icon indicating copy to clipboard operation
koin copied to clipboard

SLF4JLogger is using the wrong level when printing to logger

Open swermin opened this issue 9 months ago • 0 comments

From my experimentations I found that the SLF4JLogger always prints in what ever level the class has been configured for instead of the incoming level from the function, see this link

From my test code, I added the logger like this

install(KoinIsolated) {
    slf4jLogger()
    createEagerInstances()
}

With that it always printed info, even if the log level was supposed to be warn.

swermin avatar May 04 '24 19:05 swermin