Issue Details (XML | Word | Printable)

Key: LOGCXX-12
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Michaël CATANZARITI
Reporter: Haohua Xie
Votes: 0
Watchers: 0
Operations

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

the threshold of ApenderSkeleton can not be set by calling setOption.

Created: 13/Aug/04 02:18 AM   Updated: 27/Sep/06 12:45 AM
Return to search
Component/s: Appender
Affects Version/s: 0.9.7
Fix Version/s: 0.10.0

Time Tracking:
Not Specified

Environment: windows xp, MSVC6 MSVC7.1
Issue Links:
Duplicate
 

Resolution Date: 13/Aug/04 05:42 AM


 Description  « Hide
the threshold of AppenderSkeleton can not be set by calling setOption.

thus ,the property of threshold in the derived classes of AppenderSkeleton can not properly configured by PropertyConfigurator or DOMConfigurator.


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Haohua Xie added a comment - 13/Aug/04 06:57 AM
this is my resolution:
rewrite AppenderSkeleton::setOption as following
#include <log4cxx/helpers/stringhelper.h>

void AppenderSkeleton::setOption(const String& name, const String& value){
if (StringHelper::equalsIgnoreCase(_T("threshold"), name)){
setThreshold(Level::toLevel(value,Level::ALL));
}
}

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