You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/03/07 01:51:00 UTC

[jira] [Work logged] (LOG4J2-2793) Unable to parse the log LEVEL when it ends with SPACE.

     [ https://issues.apache.org/jira/browse/LOG4J2-2793?focusedWorklogId=399500&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-399500 ]

ASF GitHub Bot logged work on LOG4J2-2793:
------------------------------------------

                Author: ASF GitHub Bot
            Created on: 07/Mar/20 01:50
            Start Date: 07/Mar/20 01:50
    Worklog Time Spent: 10m 
      Work Description: prasad-acit commented on pull request #348: LOG4J2-2793 - Unable to parse the log LEVEL when it ends with SPACE.
URL: https://github.com/apache/logging-log4j2/pull/348
 
 
   Handled leading & trailing spaces in log LEVEL.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 399500)
    Remaining Estimate: 0h
            Time Spent: 10m

> Unable to parse the log LEVEL when it ends with SPACE.
> ------------------------------------------------------
>
>                 Key: LOG4J2-2793
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2793
>             Project: Log4j 2
>          Issue Type: Bug
>            Reporter: Renukaprasad C
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> When the level has trailing space, it failed to pase. This is the case when "monitorInterval" is configured and level got modified.
> It should truncate the space and continue. 
> 2020-02-28 12:29:21,965 Log4j2-TF-21-ConfiguratonFileWatcher-20 WARN Error while converting string [ERROR ] to type [class org.apache.logging.log4j.Level]. Using default value [null]. java.lang.IllegalArgumentException: Unknown level constant [ERROR ].
>         at org.apache.logging.log4j.Level.valueOf(Level.java:320)
>         at org.apache.logging.log4j.core.config.plugins.convert.TypeConverters$LevelConverter.convert(TypeConverters.java:288)
>         at org.apache.logging.log4j.core.config.plugins.convert.TypeConverters$LevelConverter.convert(TypeConverters.java:284)
>         at org.apache.logging.log4j.core.config.plugins.convert.TypeConverters.convert(TypeConverters.java:419)
>         at org.apache.logging.log4j.core.config.plugins.visitors.AbstractPluginVisitor.convert(AbstractPluginVisitor.java:149)
>         at org.apache.logging.log4j.core.config.plugins.visitors.PluginAttributeVisitor.visit(PluginAttributeVisitor.java:45)
>         at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.generateParameters(PluginBuilder.java:248)
>         at org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:135)
>         at org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:958)
>         at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:898)
>         at org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:890)
>         at org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:513)
>         at org.apache.logging.log4j.core.config.AbstractConfiguration.initialize(AbstractConfiguration.java:237)
>         at org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:249)
>         at org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:545)
>         at org.apache.logging.log4j.core.LoggerContext.onChange(LoggerContext.java:667)
>         at org.apache.logging.log4j.core.config.ConfiguratonFileWatcher$ReconfigurationRunnable.run(ConfiguratonFileWatcher.java:68)
>         at java.lang.Thread.run(Thread.java:745)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)