How to configure slf4j-simple

Gelin Luo picture Gelin Luo · Jan 27, 2013 · Viewed 189.7k times · Source

api 1.7 and slf4j-simple as implementation. I just can't find how to configure the logging level with this combination.

Can anyone help out?

Answer

Evgeniy Dorofeev picture Evgeniy Dorofeev · Jan 27, 2013

It's either through system property

-Dorg.slf4j.simpleLogger.defaultLogLevel=debug

or simplelogger.properties file on the classpath

see http://www.slf4j.org/api/org/slf4j/impl/SimpleLogger.html for details