Discussion:
[jira] [Created] (LOG4J2-729) log4j2.json files not ignored if no Jackson library in the classpath.
Cyrille Karmann (JIRA)
2014-07-22 02:26:38 UTC
Permalink
Cyrille Karmann created LOG4J2-729:
--------------------------------------

Summary: log4j2.json files not ignored if no Jackson library in the classpath.
Key: LOG4J2-729
URL: https://issues.apache.org/jira/browse/LOG4J2-729
Project: Log4j 2
Issue Type: Bug
Components: Configurators
Reporter: Cyrille Karmann
Priority: Minor


In a situation where no Jackson library has been added to the classpath of the project, if there is a log4j2.json file, the logger will silently use the default configuration, ignoring any log4j2.xml file that would also be available in the project.

Instead, log4j should either use the log4j2.xml file for configuration, or some error message should be displayed, to show that log4j2.json could not be read, and that the default configuration is used.



--
This message was sent by Atlassian JIRA
(v6.2#6252)
Remko Popma (JIRA)
2014-08-06 14:29:14 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Remko Popma updated LOG4J2-729:
-------------------------------

Fix Version/s: 2.0.2
Assignee: Remko Popma
Summary: Emit warning message to console if no config file found (was: log4j2.json files not ignored if no Jackson library in the classpath.)

Changed summary (was: log4j2.json files not ignored if no Jackson library in the classpath.)
Emit warning message to console if no config file found
-------------------------------------------------------
Key: LOG4J2-729
URL: https://issues.apache.org/jira/browse/LOG4J2-729
Project: Log4j 2
Issue Type: Bug
Components: Configurators
Reporter: Cyrille Karmann
Assignee: Remko Popma
Priority: Minor
Fix For: 2.0.2
In a situation where no Jackson library has been added to the classpath of the project, if there is a log4j2.json file, the logger will silently use the default configuration, ignoring any log4j2.xml file that would also be available in the project.
Instead, log4j should either use the log4j2.xml file for configuration, or some error message should be displayed, to show that log4j2.json could not be read, and that the default configuration is used.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
Remko Popma (JIRA)
2014-08-06 14:44:12 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Remko Popma resolved LOG4J2-729.
--------------------------------

Resolution: Fixed

Log4j2 will now emit the following warning message to System.err if no configuration file was found:

bq. No log4j2 configuration file found. Using default configuration: errors to the console.

Fixed in revision 1616252.
Please verify and close
Post by Remko Popma (JIRA)
Emit warning message to console if no config file found
-------------------------------------------------------
Key: LOG4J2-729
URL: https://issues.apache.org/jira/browse/LOG4J2-729
Project: Log4j 2
Issue Type: Bug
Components: Configurators
Reporter: Cyrille Karmann
Assignee: Remko Popma
Priority: Minor
Fix For: 2.0.2
In a situation where no Jackson library has been added to the classpath of the project, if there is a log4j2.json file, the logger will silently use the default configuration, ignoring any log4j2.xml file that would also be available in the project.
Instead, log4j should either use the log4j2.xml file for configuration, or some error message should be displayed, to show that log4j2.json could not be read, and that the default configuration is used.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
Matt Sicker (JIRA)
2014-08-28 03:37:59 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-729?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14113298#comment-14113298 ]

Matt Sicker commented on LOG4J2-729:
------------------------------------

I almost want to close this myself just because I see this error message dozens of times every time I build log4j-core!
Post by Remko Popma (JIRA)
Emit warning message to console if no config file found
-------------------------------------------------------
Key: LOG4J2-729
URL: https://issues.apache.org/jira/browse/LOG4J2-729
Project: Log4j 2
Issue Type: Bug
Components: Configurators
Reporter: Cyrille Karmann
Assignee: Remko Popma
Priority: Minor
Fix For: 2.0.2
In a situation where no Jackson library has been added to the classpath of the project, if there is a log4j2.json file, the logger will silently use the default configuration, ignoring any log4j2.xml file that would also be available in the project.
Instead, log4j should either use the log4j2.xml file for configuration, or some error message should be displayed, to show that log4j2.json could not be read, and that the default configuration is used.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
Cyrille Karmann (JIRA)
2014-10-06 14:26:33 UTC
Permalink
[ https://issues.apache.org/jira/browse/LOG4J2-729?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cyrille Karmann closed LOG4J2-729.
----------------------------------

Verified, thanks. Closing now.
Post by Remko Popma (JIRA)
Emit warning message to console if no config file found
-------------------------------------------------------
Key: LOG4J2-729
URL: https://issues.apache.org/jira/browse/LOG4J2-729
Project: Log4j 2
Issue Type: Bug
Components: Configurators
Reporter: Cyrille Karmann
Assignee: Remko Popma
Priority: Minor
Fix For: 2.0.2
In a situation where no Jackson library has been added to the classpath of the project, if there is a log4j2.json file, the logger will silently use the default configuration, ignoring any log4j2.xml file that would also be available in the project.
Instead, log4j should either use the log4j2.xml file for configuration, or some error message should be displayed, to show that log4j2.json could not be read, and that the default configuration is used.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Loading...