The likely suspect is that your appender is not being added to the registry of 
known appenders before the configuration is processed.

Your appender should have a macro expansion like:

IMPLEMENT_LOG4CXX_OBJECT(DailyRollingFileAppender)

that contains the registration code.  You can set a breakpoint there (depending 
on your debugger, you may need to manually expand) and on the configurator and 
see the order that they fire and whether the registration code gets called at 
all.

If you have built your appender in a DLL or shared library, are you forcing the 
library to load to trigger the registration?



On Nov 18, 2010, at 2:01 PM, Rob Outar wrote:

> I created a  custom appender that extends RollingFileAppender, my class is 
> located in a “test” namespace and the class name is TestAppender, in my xml 
> file I have:
>  
> <appender name="FILE" class="test. TestAppender"> 
>  
> But when I run, log4cxx says it cannot find appender… what am I missing?
>  
> Best regards,
>  
> Rob

Reply via email to