OK, it seems that Logback uses the BasicConfigurator if no file for configuration is found.
Which default logback properties file does Maven use?
質問
When making a Maven build of my project with install
I'm seeing log files such as the following ones when running tests:
07:29:43.616 [main] WARN a.b.c.d.e.f.converter.DateConverter - Error during converting value
07:29:43.646 [main] DEBUG g.h.i.l.m.spring.ExecutorShutdown - Shutting down executor service
I'm sure that the first statement is print with an SLF4J logger. As other dependencies there are logback-classic with the scope test
and commons-logging with the scope compile
included.
I want to reduce the logging statements to the level INFO
. From the formatting of the statements it looks like there's somewhere a logback.xml
(or similiar) file. But I don't know of any.
How can I find out which logging properties file is used and how can I set the level to INFO
?
解決
所属していません StackOverflow