Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.0.2, 2.1
-
None
-
None
Description
Formatting a message can be an expensive operation (e.g. String.format) and it is undesirable for it to be done in the calling thread when using an async logger or appender.
LOG4J2-763 moved this work to the calling thread. Would you consider bringing back the previous behavior via a config/system property?
Attachments
Issue Links
- relates to
-
LOG4J2-763 Async loggers convert message parameters toString at log record writing not at log statement execution
- Resolved
-
LOG4J2-1718 Introduce marker interface AsynchronouslyFormattable
- Resolved
-
LOG4J2-772 Performance enhancement: ParameterizedMessage should not take String snapshots of its parameters in constructor
- Closed