Details
-
New Feature
-
Resolution: Fixed
-
Major
-
0.9.28
-
None
-
Windows 7, Equinox (OSGi)
Description
Logback offers the feature to print stack traces with package data information.
It is possible to turn of the package data information printing with the option "%ex" individual on each appender.
However in our context, the calculation of the package information takes up to ten seconds. As the calculation is done synchronously and eagerly when the logging event is created, this directly impacts the performance of the caller regardless whether the %ex option is used or not.
If the method setPackagingDataEnabled(false) on the LoggerContext is called, the performance impact vanishes.
Now, instead of "blindly" casting the slf4jLogger into a logbackLogger I suggest to allow turning of this calculation by configuration. This way the dependency on logback in code can be avoided.
Attachments
Issue Links
- relates to (in)
-
LOGBACK-966 PatternLayout should default to exception tracing without packaging data
- Resolved