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

PropertyConfigurator ignores additivity flag

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 0.10.0
    • Fix Version/s: None
    • Component/s: Configurator
    • Labels:
      None

      Description

      If the PropertyConfigurator is used, the additivity Flag will be ignored.

      config:
      log4j.debug=true

      log4j.appender.dbilog=org.apache.log4j.DailyRollingFileAppender
      log4j.appender.dbilog.File=/var/log/cloudreporting/dbi.log
      log4j.appender.dbilog.DatePattern='.'yyyy-MM-dd
      log4j.appender.dbilog.MaxBackupIndex=1
      log4j.appender.dbilog.layout=org.apache.log4j.PatternLayout
      log4j.appender.dbilog.layout.ConversionPattern=%d %-5p [%c]: %m%n

      log4j.appender.logfile=org.apache.log4j.DailyRollingFileAppender
      log4j.appender.logfile.File=/var/log/cloudreporting/cloudreporting.log
      log4j.appender.logfile.DatePattern='.'yyyy-MM-dd
      log4j.appender.logfile.MaxBackupIndex=1
      log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
      log4j.appender.logfile.layout.ConversionPattern=%d %-5p [%c]: %m%n

      log4j.rootLogger=debug, logfile
      log4j.logger.dbi=trace, dbilog
      log4j.additivity.dbi=false

      log4cxx Debug:
      log4cxx: Parsing for [root] with value=[debug, logfile].
      log4cxx: Level token is [debug].
      log4cxx: OptionConverter::toLevel: no class name specified, level=[debug]
      log4cxx: Logger root set to DEBUG
      log4cxx: Parsing appender named logfile".
      log4cxx: Parsing layout options for "logfile".
      log4cxx: Setting option name=[ConversionPattern], value=[%d %-5p [%c]: %m%n]
      log4cxx: End of parsing for "logfile".
      log4cxx: Setting option name=[DatePattern], value=['.'yyyy-MM-dd]
      log4cxx: Setting option name=[File], value=[/var/log/cloudreporting/cloudreporting.log]
      log4cxx: Setting option name=[MaxBackupIndex], value=[1]
      log4cxx: Parsed "logfile" options.
      log4cxx: Parsing for [dbi] with value=[trace, dbilog].
      log4cxx: Level token is [trace].
      log4cxx: OptionConverter::toLevel: no class name specified, level=[trace]
      log4cxx: Logger dbi set to TRACE
      log4cxx: Parsing appender named dbilog".
      log4cxx: Parsing layout options for "dbilog".
      log4cxx: Setting option name=[ConversionPattern], value=[%d %-5p [%c]: %m%n]
      log4cxx: End of parsing for "dbilog".
      log4cxx: Setting option name=[DatePattern], value=['.'yyyy-MM-dd]
      log4cxx: Setting option name=[File], value=[/var/log/cloudreporting/dbi.log]
      log4cxx: Setting option name=[MaxBackupIndex], value=[1]
      log4cxx: Parsed "dbilog" options.
      log4cxx: Handling log4j.additivity.dbi=[]
      log4cxx: Finished configuring.

        Attachments

          Activity

            People

            • Assignee:
              carnold@apache.org Curt Arnold
              Reporter:
              tbede Thomas Berger
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: