The solution based on a filter has a problem since all our "if (logger.isDebugEnabled())" will return true when it should return false in the "production" env.

/César.

2011/12/27 César Álvarez Núñez <cesar.alvarez.nunez@gmail.com>
Hi all,

Our application makes an intensive use of Profiler (http://www.slf4j.org/extensions.html#profiler).
It has been very useful during the development stage an we would like to keep it at production stage but there is a problem since its "log level" is hard-coded to "debug".

Currently the profiler use the same application class logger so if log level is set to "info" in our production environment we lose the "profiler" log :-(

Alternatives:

Any other way?

BR,
/César.