[ 
https://issues.apache.org/jira/browse/LOG4J2-3169?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jose Montoya updated LOG4J2-3169:
---------------------------------
    Issue Type: Bug  (was: New Feature)

> NoSqlAppender ignores layout when buffered
> ------------------------------------------
>
>                 Key: LOG4J2-3169
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-3169
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Appenders
>    Affects Versions: 2.14.1
>            Reporter: Jose Montoya
>            Priority: Major
>
> When the appender instantiates the NoSqlDatabaseManager 
> [here|https://github.com/apache/logging-log4j2/blob/rel/2.14.1/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/nosql/NoSqlAppender.java#L76]
>  it does not include the given Layout, so when the flush event happens the 
> AbstractDatabaseManager's layout 
> [here|https://github.com/apache/logging-log4j2/blob/rel/2.14.1/log4j-core/src/main/java/org/apache/logging/log4j/core/appender/db/AbstractDatabaseManager.java#L155]
>  is null and therefore the written message is not formatted the same way that 
> `writeThrough` events are when buffer size is no configured.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to