Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SLF4JLogger is using the wrong level when printing to logger #1870

Open
swermin opened this issue May 4, 2024 · 0 comments
Open

SLF4JLogger is using the wrong level when printing to logger #1870

swermin opened this issue May 4, 2024 · 0 comments
Labels
status:checking currently in analysis - discussion or need more detailed specs type:issue
Milestone

Comments

@swermin
Copy link

swermin commented May 4, 2024

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.

@arnaudgiuliani arnaudgiuliani added type:issue status:checking currently in analysis - discussion or need more detailed specs labels May 16, 2024
@arnaudgiuliani arnaudgiuliani added this to the ktor-3.6.0 milestone May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:checking currently in analysis - discussion or need more detailed specs type:issue
Projects
None yet
Development

No branches or pull requests

2 participants