Profiling our application with following logback configuration showed that message in LoggingEvent is constructed even if it will not be logged. Is it possible to make it computed lazily?
Excerpt from out logback.xml:
What is happening: Logger is set to trace so it passes everything, event is formatted, event is discarded by ThresholdFilter.
The idea for this configuration is to have several log files with different detalization. I think this is a valid usecase.
|