Skip to content

CustomAppender Example - Class Not Found #391

Closed
@sylphrena0

Description

@sylphrena0

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. However, after adding using namespace log4cxx to resolve the compiler errors with the code, I receive the following error:

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 verbatim, and copied the appender and appender-ref to my configuration file.

Any guidance or suggestions would be appreciated.

I am using Clang 14.0.6 x86_64-pc-linux-gnu

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions