1 |
# a simple test config |
2 |
|
3 |
log4j.rootCategory=DEBUG, rootAppender |
4 |
log4j.category.sub1=A1 |
5 |
log4j.category.sub2=INFO |
6 |
log4j.category.sub1.sub2=ERROR, A2 |
7 |
|
8 |
log4j.appender.rootAppender=org.apache.log4j.ConsoleAppender |
9 |
log4j.appender.rootAppender.layout=org.apache.log4j.BasicLayout |
10 |
|
11 |
log4j.appender.A1=org.apache.log4j.FileAppender |
12 |
log4j.appender.A1.fileName=yodaLog.log |
13 |
log4j.appender.A1.layout=org.apache.log4j.BasicLayout |
14 |
|
15 |
log4j.appender.A2=org.apache.log4j.ConsoleAppender |
16 |
log4j.appender.A2.layout=org.apache.log4j.PatternLayout |
17 |
log4j.appender.A2.layout.pattern=The message %m at time %d%n |