sylphrena0 opened a new issue, #391:
URL: https://github.com/apache/logging-log4cxx/issues/391

   I'm attempting to create a custom layout to support RFC5424 (see #390), 
however, I receive a class not found error after compiling my layout and 
attempting to load the configuration. I attempted to replicate the example 
extension [provided by 
documentation](https://logging.apache.org/log4cxx/latest_stable/extending-log4cxx.html).
 However, after adding `using namespace log4cxx` to resolve the compiler errors 
with the code, I receive the following error:
   
   ```bash
   log4cxx: Could not create an Appender. Reported error follows.
   log4cxx: Class not found: NullWriterAppender
   log4cxx: No appender named [NullAppender] could be found.
   Segmentation fault
   ```
   
   I copied 
[custom-appender.cpp](https://github.com/apache/logging-log4cxx/blob/4dc3469a8dc2e336346398ee68fc091474e0c996/src/examples/cpp/custom-appender.cpp#L4)
 verbatim, and copied the `appender` and `appender-ref` to my configuration 
file. 
   
   Any guidance or suggestions would be appreciated.


-- 
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]

Reply via email to