Revision 7348
Added by ben leinfelder over 12 years ago
lib/log4j.properties | ||
---|---|---|
56 | 56 |
################################################################################ |
57 | 57 |
# EXAMPLE: Print only messages of level WARN or above in the package com.foo: |
58 | 58 |
# log4j.logger.com.foo=WARN |
59 |
#log4j.logger.edu.ucsb.nceas.metacat.dataone=DEBUG
|
|
60 |
#log4j.logger.edu.ucsb.nceas.metacat.admin.upgrade=DEBUG
|
|
59 |
log4j.logger.edu.ucsb.nceas.metacat.dataone=DEBUG |
|
60 |
log4j.logger.edu.ucsb.nceas.metacat.admin.upgrade=DEBUG |
|
61 | 61 |
log4j.logger.edu.ucsb.nceas.metacat.dataone.SystemMetadataFactory=TRACE |
62 | 62 |
log4j.logger.edu.ucsb.nceas.metacat.dataone.CNodeService=TRACE |
63 | 63 |
|
... | ... | |
71 | 71 |
log4j.appender.replication.threshold=info |
72 | 72 |
log4j.appender.replication.layout=org.apache.log4j.PatternLayout |
73 | 73 |
log4j.appender.replication.layout.ConversionPattern=@build.context@ %d{yyyyMMdd-HH:mm:ss}: [%p]: %m [%c]%n |
74 |
|
|
75 |
############## DataOne Logger ########################### |
|
76 |
log4j.logger.DataOneLogger=INFO, d1 |
|
77 |
log4j.appender.d1=org.apache.log4j.FileAppender |
|
78 |
log4j.appender.d1.File = DataOneEventLog.txt |
|
79 |
log4j.appender.d1.DatePattern='.'yyyy-ww |
|
80 |
log4j.appender.d1.maxFileSize=100000KB |
|
81 |
log4j.appender.d1.maxBackupIndex=10 |
|
82 |
log4j.appender.d1.threshold=info |
|
83 |
log4j.appender.d1.layout=org.apache.log4j.PatternLayout |
|
84 |
log4j.appender.d1.layout.ConversionPattern=@build.context@ %d{yyyyMMdd-HH:mm:ss}: [%p]: %m [%c]%n |
src/edu/ucsb/nceas/metacat/replication/ReplicationHandler.java | ||
---|---|---|
94 | 94 |
// private static final AbstractDatabase dbAdapter = MetacatUtil.dbAdapter; |
95 | 95 |
private static Logger logReplication = Logger.getLogger("ReplicationLogging"); |
96 | 96 |
private static Logger logMetacat = Logger.getLogger(ReplicationHandler.class); |
97 |
private static Logger logD1 = Logger.getLogger("DataOneLogger"); |
|
98 | 97 |
|
99 | 98 |
private static int DOCINSERTNUMBER = 1; |
100 | 99 |
private static int DOCERRORNUMBER = 1; |
... | ... | |
525 | 524 |
//return DBConnection |
526 | 525 |
DBConnectionPool.returnDBConnection(dbConn, serialNumber); |
527 | 526 |
}//finally |
528 |
logD1.info("replication.create localId:" + accNumber);
|
|
527 |
logMetacat.info("replication.create localId:" + accNumber);
|
|
529 | 528 |
} |
530 | 529 |
|
531 | 530 |
|
... | ... | |
691 | 690 |
//return DBConnection |
692 | 691 |
DBConnectionPool.returnDBConnection(dbConn, serialNumber); |
693 | 692 |
}//finally |
694 |
logD1.info("replication.create localId:" + accNumber);
|
|
693 |
logMetacat.info("replication.create localId:" + accNumber);
|
|
695 | 694 |
} |
696 | 695 |
|
697 | 696 |
|
... | ... | |
761 | 760 |
//return DBConnection |
762 | 761 |
DBConnectionPool.returnDBConnection(dbConn, serialNumber); |
763 | 762 |
}//finally |
764 |
logD1.info("replication.handleDeleteSingleDocument localId:" + docId);
|
|
763 |
logMetacat.info("replication.handleDeleteSingleDocument localId:" + docId);
|
|
765 | 764 |
} |
766 | 765 |
|
767 | 766 |
/* Handle updateLastCheckTimForSingleServer*/ |
Also available in: Unified diff
remove unused "dataonelogger"