summaryrefslogtreecommitdiff
path: root/eg/log4j-manual-2.conf
blob: 8bab5c075bd01a4da3f839923e529271bb3166c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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