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 "Bernhard Mähr (JIRA)" <ji...@apache.org> on 2016/11/08 11:27:58 UTC
[jira] [Resolved] (LOG4J2-1443) Fallback to "default configuration"
not working anymore
[ https://issues.apache.org/jira/browse/LOG4J2-1443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bernhard Mähr resolved LOG4J2-1443.
-----------------------------------
Resolution: Fixed
Fix Version/s: 2.7
> Fallback to "default configuration" not working anymore
> -------------------------------------------------------
>
> Key: LOG4J2-1443
> URL: https://issues.apache.org/jira/browse/LOG4J2-1443
> Project: Log4j 2
> Issue Type: Bug
> Affects Versions: 2.6, 2.6.1
> Reporter: Bernhard Mähr
> Fix For: 2.7
>
>
> Until Version 2.5 I got the message
> {code}
> ERROR StatusLogger File not found in file system or classpath: ./log4j-test.xml
> ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
> {code}
> if the log4j-configuration file was missing. Starting with 2.6 it causes a
> {code}
> Caused by: java.lang.NullPointerException: No Configuration was provided
> {code}
> This is especially annoying for unit-tests because there is not always a log4j configuration.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org