Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.5, 2.6, 2.7
-
None
-
None
Description
All log(Message) methods should use Message.getThrowable(), e.g.
public void debug(final Message msg) { logIfEnabled(FQCN, Level.DEBUG, null, msg, msg != null ? msg.getThrowable() : null); }
instead of the current
public void debug(final Message msg) { logIfEnabled(FQCN, Level.DEBUG, null, msg, null); }
Attachments
Attachments
Issue Links
- is related to
-
LOG4J2-1226 Message instances are simply serialized. They mustn't.
- Closed