-
Notifications
You must be signed in to change notification settings - Fork 21
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
SLF4J: The following loggers will not work because they were created during the default configuration phase of the underlying logging system. #23
Comments
I use the following code to get around this issue, was provided by this question and answer: http://stackoverflow.com/a/12095245 . The below code works for sbt 0.12.x, the Stackoverflow code looks to be for an older version of sbt.
|
Whoa. I had no idea there was that kind of setting in sbt. Thanks Blair. Heiko, your call on whether this is a fix or not. I am going to plug this in as soon as possible. |
@blair, thanks for answering. There is a simple alternative, if you don't need parallel test execution:
Closing this, because it's not a ScalaLogging issue. |
Not sure that scalalogging can work in conjunction with Java code. I tested scalalogging in a project with both scala and java code (see github url below) with an underlying slf4j-simple implementation and ended up with the following statement where the following displayed:
This small project has two tests, one that tests a scala object and the other a java object.
Try it out by cloning https://github.com/dhinojosa/scala_logging_study and running
test
. You will find that it will randomly choose which class it will apply logging to.The text was updated successfully, but these errors were encountered: