Revision 5014
Added by daigle over 15 years ago
log4j.properties | ||
---|---|---|
57 | 57 |
# EXAMPLE: Print only messages of level WARN or above in the package com.foo: |
58 | 58 |
# log4j.logger.com.foo=WARN |
59 | 59 |
|
60 |
#log4j.logger.edu.ucsb.nceas.metacat=INFO |
|
60 |
### LOGGING TO REPLICATION FILE ######################################################### |
|
61 |
log4j.category.ReplicationLogging=replication |
|
62 |
log4j.appender.replication=org.apache.log4j.DailyRollingFileAppender |
|
63 |
log4j.appender.replication.File = ${replication.logfile.name} |
|
64 |
log4j.appender.replication.DatePattern='.'yyyy-ww |
|
65 |
log4j.appender.replication.maxFileSize=100000KB |
|
66 |
log4j.appender.replication.maxBackupIndex=10 |
|
67 |
log4j.appender.replication.threshold=info |
|
68 |
log4j.appender.replication.layout=org.apache.log4j.PatternLayout |
|
69 |
log4j.appender.replication.layout.ConversionPattern=@build.context@ %d{yyyyMMdd-HH:mm:ss}: [%p]: %m [%c]%n |
|
61 | 70 |
|
Also available in: Unified diff
Create replication directory. Move replication code there. Use log4j for replication logging (rollingfileappender). Beef up replication logging and error control.