Paul Burrowes created LOG4J2-1999:
-------------------------------------

             Summary: HilightConverter converts all unrecognised levels to DEBUG
                 Key: LOG4J2-1999
                 URL: https://issues.apache.org/jira/browse/LOG4J2-1999
             Project: Log4j 2
          Issue Type: Bug
          Components: Configurators
    Affects Versions: 2.8.2
            Reporter: Paul Burrowes
            Priority: Minor


On line 166 HighlightConverter maps the level in the highlight  style option to 
a Level using the single-argument toLevel(). This defaults to {{DEBUG}} if the 
level is not found. It needs to use the two-argument toLevel() so it can get a 
null return value to report errors
{code}
                final Level level = Level.toLevel(key);
{code}
should be 
{code}
                final Level level = Level.toLevel(key, null);
{code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to