1 2 3 4 5 6 7 8 9 10 11 12 13 14
log4j.rootLogger=info, stdout, F log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout # Pattern to output the caller's file name and line number. log4j.appender.stdout.layout.ConversionPattern=%X{PID} %r %5p [%t] (%r ms) (%F:%L) - %m%n log4j.appender.F=org.apache.log4j.FileAppender log4j.appender.F.File=example.log log4j.appender.F.Append=false log4j.appender.F.layout=org.apache.log4j.PatternLayout log4j.appender.F.layout.ConversionPattern=%p %t (%r ms) %c - %m%n