You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@logging.apache.org by "Sebastian Geiger (JIRA)" <lo...@logging.apache.org> on 2017/06/09 17:13:18 UTC
[jira] [Commented] (LOGCXX-488) Space after log level hides log
messages
[ https://issues.apache.org/jira/browse/LOGCXX-488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16044694#comment-16044694 ]
Sebastian Geiger commented on LOGCXX-488:
-----------------------------------------
Perfect, thanks a lot for fixing this so quickly.
> Space after log level hides log messages
> ----------------------------------------
>
> Key: LOGCXX-488
> URL: https://issues.apache.org/jira/browse/LOGCXX-488
> Project: Log4cxx
> Issue Type: Bug
> Reporter: Sebastian Geiger
> Assignee: Thorsten Schöning
> Fix For: 0.11.0
>
>
> *Problem:*
> Consider the following line in the log4j.properties file:
> {code}
> log4j.logger.MyClass=TRACE_
> {code}
> Where the underscore represents a trailing space before the line ends. This causes TRACE message for `MyClass` to be silently omitted from the log but no warning is printed. Removing the trailing space restores output of the TRACE message for the respective class.
> *Suggested Fix:*
> Either implicitly trim the line when parsing the property file and ignore the space, or print a warning during start.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)