Log4cxx
  1. Log4cxx
  2. LOGCXX-28

Appender threshold cannot be set in configuration files

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.7
    • Fix Version/s: 0.10.0
    • Component/s: Configurator
    • Labels:
      None
    • Environment:
      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!

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

        Issue Links

          Activity

            People

            • Assignee:
              Michaël CATANZARITI
              Reporter:
              Martin Landers
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development