Project

General

Profile

« Previous | Next » 

Revision 5392

Added by berkley over 14 years ago

added a DataOneLogger for event notifications on the CN. The logger is called DataOneLogger and can be managed in the log4j.properties file

View differences:

log4j.properties
33 33
################################################################################
34 34

  
35 35
# set the log level to WARN and the log should be printed to stdout. 
36
log4j.rootLogger=WARN, stdout
36
log4j.rootLogger=FATAL, stdout
37 37
#log4j.threshold=FATAL, ERROR, WARN, INFO
38 38

  
39 39

  
......
68 68
log4j.appender.replication.layout=org.apache.log4j.PatternLayout
69 69
log4j.appender.replication.layout.ConversionPattern=@build.context@ %d{yyyyMMdd-HH:mm:ss}: [%p]: %m [%c]%n
70 70

  
71
############## DataOne Logger ###########################
72
log4j.category.DataOneLogger=d1
73
log4j.appender.d1=org.apache.log4j.FileAppender
74
log4j.appender.d1.File = DataOneEventLog.txt
75
log4j.appender.d1.DatePattern='.'yyyy-ww
76
log4j.appender.d1.maxFileSize=100000KB
77
log4j.appender.d1.maxBackupIndex=10
78
log4j.appender.d1.threshold=info
79
log4j.appender.d1.layout=org.apache.log4j.PatternLayout
80
log4j.appender.d1.layout.ConversionPattern=@build.context@ %d{yyyyMMdd-HH:mm:ss}: [%p]: %m [%c]%n

Also available in: Unified diff