Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-3122

Logging to Log4j2 MongoDb4 Appender get ERROR on trace, debug and info level.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.14.1
    • 2.17.0
    • Appenders
    • None

    Description

      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 that contain the very minimal code to reproduce the error. The configuration is provided in the log4j2.xml file.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              redapel Red Apple
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m