You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2017/02/12 05:27:42 UTC

[jira] [Commented] (LOG4J2-1812) Improve error message when log4j 2 configuration file not found

    [ https://issues.apache.org/jira/browse/LOG4J2-1812?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15862651#comment-15862651 ] 

ASF subversion and git services commented on LOG4J2-1812:
---------------------------------------------------------

Commit 2467ef5af66cbf115bcfda67e23e14821e163b90 in logging-log4j2's branch refs/heads/master from rpopma
[ https://git-wip-us.apache.org/repos/asf?p=logging-log4j2.git;h=2467ef5 ]

LOG4J2-1812 Improve error message when log4j 2 configuration file not found


> Improve error message when log4j 2 configuration file not found
> ---------------------------------------------------------------
>
>                 Key: LOG4J2-1812
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1812
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Configurators
>    Affects Versions: 2.3, 2.4, 2.5, 2.6, 2.7, 2.8
>            Reporter: Remko Popma
>            Assignee: Remko Popma
>             Fix For: 2.8.1
>
>
> When configuration fails because no Log4j 2 configuration file is found, the following message is logged to the console at ERROR level: 
> {code}
> No log4j2 configuration file found. Using default configuration: logging only errors to the console.
> {code}
> We should be able to improve this. One idea is to add this:
> {code}
> No log4j2 configuration file found. Using default configuration: logging only errors to the console. Set system property 'org.apache.logging.log4j.simplelog.StatusLogger.level' to TRACE to show Log4j2 initialization internal logging.
> {code}
> Another idea is to dump the contents of the StatusLogger ring buffer to the console.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org