Issue Details (XML | Word | Printable)

Key: LOGCXX-28
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Michaël CATANZARITI
Reporter: Martin Landers
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Log4cxx

Appender threshold cannot be set in configuration files

Created: 20/Oct/04 04:19 PM   Updated: 27/Sep/06 12:45 AM
Return to search
Component/s: Configurator
Affects Version/s: 0.9.7
Fix Version/s: 0.10.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works log4cxx_threshold.patch 2004-10-20 04:21 PM Martin Landers 1 kB
GZip Archive threshold_error.tar.gz 2004-10-20 04:20 PM Martin Landers 0.8 kB
Environment: Linux, but affects all platforms.
Issue Links:
Duplicate

Resolution Date: 22/Oct/04 02:12 PM


 Description  « Hide
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!

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Martin Landers added a comment - 20/Oct/04 04:20 PM
Small test program for reproducing the bug.

Martin Landers added a comment - 20/Oct/04 04:21 PM
Patch fixing the appender threshold problem.

Curt Arnold added a comment - 22/Oct/04 02:12 PM
I believe this had already been fixed in the CVS in May 2004 by file revision 1.7.

Curt Arnold added a comment - 22/Oct/04 02:27 PM
This bug has triplicated (but fixed), LOGCXX-12, 27- and -28.