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

          Martin Landers created issue -
          Martin Landers made changes -
          Field Original Value New Value
          Attachment threshold_error.tar.gz [ 17962 ]
          Martin Landers made changes -
          Attachment log4cxx_threshold.patch [ 17963 ]
          Curt Arnold made changes -
          Link This issue is duplicated by LOGCXX-27 [ LOGCXX-27 ]
          Curt Arnold made changes -
          Resolution Fixed [ 1 ]
          Fix Version/s 0.9.8 [ 10782 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Curt Arnold made changes -
          Link This issue duplicates LOGCXX-12 [ LOGCXX-12 ]
          Alan Cabrera made changes -
          Link This issue is duplicated by LOGCXX-27 [ LOGCXX-27 ]
          Alan Cabrera made changes -
          Link This issue is duplicated by LOGCXX-27 [ LOGCXX-27 ]
          Alan Cabrera made changes -
          Link This issue duplicates LOGCXX-12 [ LOGCXX-12 ]
          Alan Cabrera made changes -
          Link This issue duplicates LOGCXX-12 [ LOGCXX-12 ]

            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