swebb2066 commented on issue #391:
URL:
https://github.com/apache/logging-log4cxx/issues/391#issuecomment-2229718788
The example `custom-appender` is build by the Log4cxx build scripts (unless
you define `BUILD_TESTING=off`). Please try running that program by doing:
```
$ ( cd /home/steph/logging-log4cxx/src/examples/cpp/; LOG4CXX_DEBUG=true
/home/steph/logging-log4cxx/build/src/examples/cpp/custom-appender.exe )
```
The output should be:
```
log4cxx: Started
log4cxx: DOMConfigurator configuring file custom-appender.xml...
log4cxx: Loading configuration file [custom-appender.xml].
log4cxx: debug attribute= "".
log4cxx: Ignoring internalDebug attribute.
log4cxx: Threshold ="".
log4cxx: Level value for root is [info].
log4cxx: OptionConverter::toLevel: no class name specified, level=[info]
log4cxx: root level set to INFO
log4cxx: Class name: [org.apache.log4j.ConsoleAppender]
log4cxx: Setting option name=[Target], value=[System.out]
log4cxx: Parsing layout of class: "org.apache.log4j.PatternLayout"
log4cxx: Setting option name=[ConversionPattern], value=[[%d{yyyy-MM-dd
HH:mm:ss}] %c %-5p - %m%n]
log4cxx: Adding appender named [ConsoleAppender] to logger [root].
log4cxx: Retreiving an instance of NullLogger
log4cxx: Setting [NullLogger] additivity to [false].
log4cxx: Class name: [NullWriterAppender]
log4cxx: Setting option name=[SomeValue], value=[Nothing]
log4cxx: Adding appender named [NullAppender] to logger [NullLogger].
[2024-07-16 10:16:11] root INFO - This is some root message
```
--
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]