You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2021/12/23 18:40:00 UTC

[jira] [Commented] (LOG4J2-3122) Logging to Log4j2 MongoDb4 Appender get ERROR on trace, debug and info level.

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

Gary D. Gregory commented on LOG4J2-3122:
-----------------------------------------

I can reproduce this with 2.14.1 but NOT with 2.17.0. You should, of course, update ASAP.

> Logging to Log4j2 MongoDb4 Appender get ERROR on trace, debug and info level.
> -----------------------------------------------------------------------------
>
>                 Key: LOG4J2-3122
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-3122
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Appenders
>    Affects Versions: 2.14.1
>            Reporter: Red Apple
>            Priority: Blocker
>         Attachments: log4j2-mongodb4-appender-main.zip
>
>
> Logging to Log4j2 MongoDb4 Appender on trace, debug and info log level give the following error
>  *ERROR Recursive call to appender*
>  but give success result and the log got written to the mongodb database when using warn or error log level.
>  Possibly something recursive call happens with info log level that causing this bug.
> [Here is the repository|https://github.com/redapel/log4j2-mongodb4-appender] that contain the very minimal code to reproduce the error. The configuration is provided in the *log4j2.xml* file.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)