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

Issues #28

Closed
elect86 opened this issue Nov 10, 2017 · 6 comments
Closed

Issues #28

elect86 opened this issue Nov 10, 2017 · 6 comments

Comments

@elect86
Copy link

elect86 commented Nov 10, 2017

Hi,

following the readme, I instantiated at top level here: val logger = KotlinLogging.logger {}

and then I use wherever I need it like: logger.warn{ "omg" }

But whenever I run some tests, I always get the following:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

why?

@oshai
Copy link
Owner

oshai commented Nov 10, 2017 via email

@elect86
Copy link
Author

elect86 commented Nov 10, 2017

Uh, sorry I was blind..

Anyway, following that link, adding this compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25' to Gradle seems working.

However now I get a lot of noise for something external to my program..

https://gist.github.com/elect86/e3a74336984f1354f448b9eae72b1bde

Any idea how could I solve?

@oshai
Copy link
Owner

oshai commented Nov 10, 2017 via email

@AlexCzar
Copy link

@elect86 slf4j-simple is just that - simple :) Try logback instead, it is pretty straight forward to configure and is the de-facto standard for slf4j impl: https://logback.qos.ch/manual/configuration.html

@elect86
Copy link
Author

elect86 commented Nov 16, 2017

Hi Alex,

thanks for the feedback, I'll take a look :)

@oshai
Copy link
Owner

oshai commented Nov 16, 2017

I will close the issue now. Youre welcome to reopen if there is still an issue.

@oshai oshai closed this as completed Nov 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants