Uploaded image for project: 'Log4cxx'
  1. Log4cxx
  2. LOGCXX-194

Garbage in log files when appenders are defined in multiple levels of the logger hierarchy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 0.10.0
    • 0.10.0
    • Appender
    • None

    Description

      When appenders are defined in multiple levels of the logger hierarchy, corruption of the log output occurs.

      To illustrate, create a log4cxx.properties file wih the following loggers defined:

      log4j.rootLogger=debug, apndr1
      log4j.logger.subLogger=debug, apndr2

      'apndr1' and 'apndr2' can be any type of appender, although for the purposes of investigating this bug, FileAppenders and RollingFileAppenders were used with PatternLayout and XMLLayout layouts.

      Once configured, using multiple threads to create a heavy load on the logging system, send log events to the 'subLogger' logger.

      Some of the data in the resulting logging output will include garbage.

      Attachments

        Issue Links

          Activity

            People

              carnold@apache.org Curt Arnold
              miielz Myles Bunbury
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: