357 | | |
358 | | === ${TOMCAT_HOME}/lib/log4j.properties === |
359 | | * logローテーションを仕掛けたい。が、とりあえずそのままにしておく |
360 | | {{{ |
361 | | # Set root logger level and its only appender to A1. |
362 | | log4j.rootLogger=ERROR, A1 |
363 | | log4j.logger.config.org.epics.archiverappliance=INFO |
364 | | log4j.logger.org.apache.http=ERROR |
365 | | |
366 | | |
367 | | # A1 is set to be a DailyRollingFileAppender |
368 | | log4j.appender.A1=org.apache.log4j.DailyRollingFileAppender |
369 | | log4j.appender.A1.File=arch.log |
370 | | log4j.appender.A1.DatePattern='.'yyyy-MM-dd |
371 | | |
372 | | |
373 | | # A1 uses PatternLayout. |
374 | | log4j.appender.A1.layout=org.apache.log4j.PatternLayout |
375 | | log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n |
376 | | }}} |
| 405 | === ${TOMCAT_HOME}/lib/log4j.properties === |
| 406 | * logローテーションを仕掛けたい。が、とりあえずそのままにしておく |
| 407 | {{{ |
| 408 | # Set root logger level and its only appender to A1. |
| 409 | log4j.rootLogger=ERROR, A1 |
| 410 | log4j.logger.config.org.epics.archiverappliance=INFO |
| 411 | log4j.logger.org.apache.http=ERROR |
| 412 | |
| 413 | |
| 414 | # A1 is set to be a DailyRollingFileAppender |
| 415 | log4j.appender.A1=org.apache.log4j.DailyRollingFileAppender |
| 416 | log4j.appender.A1.File=arch.log |
| 417 | log4j.appender.A1.DatePattern='.'yyyy-MM-dd |
| 418 | |
| 419 | |
| 420 | # A1 uses PatternLayout. |
| 421 | log4j.appender.A1.layout=org.apache.log4j.PatternLayout |
| 422 | log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n |
| 423 | }}} |
| 424 | |