You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "df (Jira)" <ji...@apache.org> on 2019/10/11 13:13:00 UTC
[jira] [Updated] (LOG4J2-2706) JsonLayout prevents logging
[ https://issues.apache.org/jira/browse/LOG4J2-2706?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
df updated LOG4J2-2706:
-----------------------
Description:
Hi,
I have a log4j2.xml configuration with 2 appenders:
* Console with JsonLayout
* RollingFile
In the Loggers section I use an AppenderRef for RollingFile.
Unfortunatelly, the file stays almost empty, compared to when I'm removing the console appender or when I replace the JsonLayout with a PatternLayout.
jackson JARs are present: jackson-annotations.jar, jackson-core.jar, jackson-databind.jar (v 2.9.10)
was:
Hi,
I have a log4j2.xml configuration with 2 appenders:
* Console with JsonLayout
* RollingFile
In the Loggers section I use an AppenderRef for RollingFile.
Unfortunatelly, the file stays almost empty, compared to when I'm removing the console appender or when I replace the JsonLayout with a PatternLayout.
> JsonLayout prevents logging
> ---------------------------
>
> Key: LOG4J2-2706
> URL: https://issues.apache.org/jira/browse/LOG4J2-2706
> Project: Log4j 2
> Issue Type: Bug
> Components: Appenders, Layouts
> Affects Versions: 2.12.1
> Environment: Windows
> Reporter: df
> Priority: Major
> Labels: JsonLayout
>
> Hi,
> I have a log4j2.xml configuration with 2 appenders:
> * Console with JsonLayout
> * RollingFile
> In the Loggers section I use an AppenderRef for RollingFile.
> Unfortunatelly, the file stays almost empty, compared to when I'm removing the console appender or when I replace the JsonLayout with a PatternLayout.
> jackson JARs are present: jackson-annotations.jar, jackson-core.jar, jackson-databind.jar (v 2.9.10)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)