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:

   - Use different loggers for application and profiler >-->> It requires
   to refactoring all the code and remember that any new Profiler that will be
   used need to set a custom logger instead of the default class logger.

   - Open a request to modify Profiler in order to set a custom log level.

   - Keep minimum log level to "debug" and make use of a Filter to accept
   any log event with marker=PROFILER, otherwise only accept if log level >=
   INFO >-->> It only will work with LogBack but Profiler belongs to SLF4J so
   it should work with any bridge.

Any other way?

BR,
/César.
_______________________________________________
Logback-user mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/logback-user

Reply via email to