diff options
Diffstat (limited to 'eg/log4j-manual-2.conf')
-rw-r--r-- | eg/log4j-manual-2.conf | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/eg/log4j-manual-2.conf b/eg/log4j-manual-2.conf new file mode 100644 index 0000000..8bab5c0 --- /dev/null +++ b/eg/log4j-manual-2.conf @@ -0,0 +1,13 @@ +# From the Log4j manual at +# http://jakarta.apache.org/log4j/docs/manual.html +# (Just replaced ConsoleAppender by BufferAppender for testing) + +log4j.rootLogger=DEBUG, A1 +log4j.appender.A1=Log::Log4perl::Appender::TestBuffer +log4j.appender.A1.layout=org.apache.log4j.PatternLayout + +# Print the date in ISO 8601 format +log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n + +# Print only messages of level WARN or above in the package com.foo. +log4j.logger.com.foo=WARN |