rm5248 commented on issue #391:
URL:
https://github.com/apache/logging-log4cxx/issues/391#issuecomment-2226393670
Probably the issue is that your naming is incorrect.
The macro `DECLARE_LOG4CXX_OBJECT(NullWriterAppender)` maps to the name of
the class, and it is this name(`NullWriterAppender`) that is used to load the
class.
The code and config file go together, so they need to look something like
this:
```
class MyAppender : public AppenderSkeleton {
public:
DECLARE_LOG4CXX_OBJECT(MyAppender)
...
};
In the XML file:
<appender name="some-name-here" class="MyAppender">
</appender>
```
Note that the appender does not need to be in the `log4cxx` namespace at all.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]