Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
According to LOG4J2-462 a LogEvent should never return null for getLevel(). But org.apache.logging.log4j.core.AbstractLogEvent is currently returning null as level, which will lead to an NPE, if one extends this class to create an own LogEvent, without overriding the getLevel() method.
Suggestion is to remove getLevel() from the abstract class, to force developers to decide which level should be returned.
Attachments
Attachments
Issue Links
- is related to
-
LOG4J2-462 LevelPatternConverter.format may throw NPE
- Resolved