标签:class blog code java ext com
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57 |
log4j.rootLogger=INFO,CATALINA log4j.logger.org.apache.catalina=WARN,CONSOLE #log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=INFO log4j.logger.org.apache.catalina.core=WARN,CATALINA log4j.logger.org.apache.catalina.session=WARN,CATALINA #log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender # Define all the appenders log4j.appender.CONSOLE=org.apache.log4j.DailyRollingFileAppender log4j.appender.CONSOLE.File=${catalina.home}/logs/catalina.out log4j.appender.CONSOLE.Append= true log4j.appender.CONSOLE.Encoding=UTF- 8 # Roll-over the log once per day log4j.appender.CONSOLE.DatePattern= ‘.‘ yyyy-MM-dd ‘.log‘ log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout log4j.appender.CONSOLE.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss.SSS} %-5p %c- %m%n # Define all the appenders log4j.appender.CATALINA=org.apache.log4j.DailyRollingFileAppender log4j.appender.CATALINA.File=${catalina.home}/logs/catalina log4j.appender.CATALINA.Append= true log4j.appender.CATALINA.Encoding=UTF- 8 # Roll-over the log once per day log4j.appender.CATALINA.DatePattern= ‘.‘ yyyy-MM-dd ‘.log‘ log4j.appender.CATALINA.layout = org.apache.log4j.PatternLayout log4j.appender.CATALINA.layout.ConversionPattern = %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5p %c- %m%n log4j.appender.LOCALHOST=org.apache.log4j.DailyRollingFileAppender log4j.appender.LOCALHOST.File=${catalina.home}/logs/localhost log4j.appender.LOCALHOST.Append= true log4j.appender.LOCALHOST.Encoding=UTF- 8 log4j.appender.LOCALHOST.DatePattern= ‘.‘ yyyy-MM-dd ‘.log‘ log4j.appender.LOCALHOST.layout = org.apache.log4j.PatternLayout log4j.appender.LOCALHOST.layout.ConversionPattern = %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5p %c- %m%n log4j.appender.MANAGER=org.apache.log4j.DailyRollingFileAppender log4j.appender.MANAGER.File=${catalina.home}/logs/manager log4j.appender.MANAGER.Append= true log4j.appender.MANAGER.Encoding=UTF- 8 log4j.appender.MANAGER.DatePattern= ‘.‘ yyyy-MM-dd ‘.log‘ log4j.appender.MANAGER.layout = org.apache.log4j.PatternLayout log4j.appender.MANAGER.layout.ConversionPattern = %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5p %c- %m%n log4j.appender.HOST-MANAGER=org.apache.log4j.DailyRollingFileAppender log4j.appender.HOST-MANAGER.File=${catalina.home}/logs/host-manager. log4j.appender.HOST-MANAGER.Append= true log4j.appender.HOST-MANAGER.Encoding=UTF- 8 log4j.appender.HOST-MANAGER.DatePattern= ‘.‘ yyyy-MM-dd ‘.log‘ log4j.appender.HOST-MANAGER.layout = org.apache.log4j.PatternLayout log4j.appender.HOST-MANAGER.layout.ConversionPattern = %d{yyyy-MM-dd HH:mm:ss.SSS} [%t] %-5p %c- %m%n # Configure which loggers log to which appenders log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=INFO, LOCALHOST log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager]=INFO, MANAGER log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/host-manager]=INFO, HOST-MANAGER |
tomcat 6.x + log4j日志配置并按天(或大小)生成文件,布布扣,bubuko.com
tomcat 6.x + log4j日志配置并按天(或大小)生成文件
标签:class blog code java ext com
原文地址:http://www.cnblogs.com/leeying/p/3773000.html