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

Appender threshold cannot be set in configuration files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.9.7
    • 0.10.0
    • Configurator
    • None
    • Linux, but affects all platforms.

    Description

      The threshold of an appender cannot be configured using
      the Property- or DOMConfigurator, because AppenderSkeleton
      lacks a properly implemented setOption method.

      When encountering the Threshold attribute, the Configurators
      call the setOption method of the appropriate appender class,
      which delegates the call up the hierarchy until it reaches
      AppenderSkeleton::setOption, which is an empty method!

      However, the documentation for AppenderSkeleton::setThreshold
      states: "In configuration files this option is specified by setting
      the value of the Threshold option...". Doh!

      Attachments

        1. log4cxx_threshold.patch
          1 kB
          Martin Landers
        2. threshold_error.tar.gz
          0.8 kB
          Martin Landers

        Issue Links

          Activity

            People

              mcatan Michael Catanzariti
              martin.landers Martin Landers
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: