log4j.rootLogger=debug,stdout log4j.appender.stdout = org.apache.log4j.ConsoleAppender log4j.appender.stdout.Target = System.out log4j.appender.stdout.layout = org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern = [%d{yyyy-MM-dd HH/:mm/:ss}]%-5p %c(line/:%L) %x-%m%n
打印结果:
[2015-08-03 16/:59/:33]DEBUG XXXXX.TestTask(line/:25) -Task15 : is started.
时间: 2024-10-08 12:12:41