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

          Hide
          Martin Landers added a comment -

          Small test program for reproducing the bug.

          Show
          Martin Landers added a comment - Small test program for reproducing the bug.
          Hide
          Martin Landers added a comment -

          Patch fixing the appender threshold problem.

          Show
          Martin Landers added a comment - Patch fixing the appender threshold problem.
          Hide
          Curt Arnold added a comment -

          I believe this had already been fixed in the CVS in May 2004 by file revision 1.7.

          Show
          Curt Arnold added a comment - I believe this had already been fixed in the CVS in May 2004 by file revision 1.7.
          Hide
          Curt Arnold added a comment -

          This bug has triplicated (but fixed), LOGCXX-12, 27- and -28.

          Show
          Curt Arnold added a comment - This bug has triplicated (but fixed), LOGCXX-12 , 27- and -28.

            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