Hi I did used XLevel.h & cpp as model for my class and it has the same registration macros. Q: Does it have to be in log4cxx namespace? Q: Why is the class "org.apache.log4j.xml.XLevel" in the xml config? Can I use "com.spanlink.log.SLevel" for mine or must my class be under org.apache.log4j.xml also? How does it determine "where" is my class? In Java, my class is in com.spanlink.log package but I wasn't sure how that equates to in my cpp version.
Thanks, -Alvin -----Original Message----- From: Curt Arnold [mailto:[EMAIL PROTECTED] Sent: Thursday, December 23, 2004 4:47 PM To: Log4CXX User Subject: Re: XML cfg entries for custom levels It is not a facility that I have used, but it is tested in the unit tests by tests/src/customlogger/xloggertestcase.cpp. I compared your config file with the tests/input/xml/customLogger1.xml, the config file for that test and didn't see any significant differences. I believe the more likely problem is a registration failure of the level class. You might try comparing your level class with tests/src/xml/XLevel.cpp which implements two additional levels "lethal" and "trace" used in the unit tests and see if you might have missed some registration macro.
