1 |
##Eventually you can add more loggers using something like this below |
2 |
#log4j.rootLogger=debug, A1, yourLogger1, yourLogger2 |
3 |
|
4 |
log4j.rootLogger=ERROR, toFile |
5 |
|
6 |
log4j.appender.toFile=org.apache.log4j.FileAppender |
7 |
log4j.appender.toFile.File=/home/kusanagi/Data/RootData/YodaLog.log |
8 |
log4j.appender.toFile.layout=org.apache.log4j.PatternLayout |
9 |
log4j.appender.toFile.layout.ConversionPattern=%p %t %c - %m%n |
10 |
|
11 |
##--------------------------------------------------------------- |
12 |
# Below here you can define all the Appender and Layout for your custom Loggers |
13 |
|
14 |
#log4j.appender.toStdout=org.apache.log4j.ConsoleAppender |
15 |
#log4j.appender.toStdout.layout=org.apache.log4j.PatternLayout |
16 |
|
17 |
# Pattern to output the caller's file name and line number. |
18 |
#log4j.appender.toStdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n |