Project

General

Profile

1
# /**
2
#  *  '$rcsfile: log4j.properties,v $'
3
#  *  copyright: 2002 regents of the university of california and the
4
#  *              national center for ecological analysis and synthesis
5
#  *   '$author: brooke $'
6
#  *     '$date: 2003/06/24 00:58:49 $'
7
# * '$revision: 1.1 $'
8
#  *
9
#  * this program is free software; you can redistribute it and/or modify
10
#  * it under the terms of the gnu general public license as published by
11
#  * the free software foundation; either version 2 of the license, or
12
#  * (at your option) any later version.
13
#  *
14
#  * this program is distributed in the hope that it will be useful,
15
#  * but without any warranty; without even the implied warranty of
16
#  * merchantability or fitness for a particular purpose.  see the
17
#  * gnu general public license for more details.
18
#  *
19
#  * you should have received a copy of the gnu general public license
20
#  * along with this program; if not, write to the free software
21
#  * foundation, inc., 59 temple place, suite 330, boston, ma  02111-1307  usa
22
#  */
23
#
24
#
25
################################################################################
26
################################################################################
27
#
28
# for conversion/formatting characters, see:
29
#
30
# http://logging.apache.org/log4j/docs/api/org/apache/log4j/PatternLayout.html
31
#
32
################################################################################
33
################################################################################
34

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

    
39

    
40
### LOGGING TO CONSOLE #########################################################
41
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
42
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
43

    
44
# define the pattern to be used in the logs... 
45
log4j.appender.stdout.layout.ConversionPattern=@build.context@ %d{yyyyMMdd-HH:mm:ss}: [%p]: %m [%c]%n
46

    
47
# %p -> priority level of the event - (e.g. WARN)
48
# %m -> message to be printed
49
# %c -> category name ... in this case name of the class
50
# %d -> Used to output the date of the logging event. example, %d{HH:mm:ss,SSS} or %d{dd MMM yyyy HH:mm:ss,SSS}. Default format is ISO8601 format
51
# %M -> print the method name where the event was generated ... can be extremely slow. 
52
# %L -> print the line number of the event generated ... can be extremely slow.
53
# %t -> Used to output the name of the thread that generated the log event
54
# %n -> carriage return
55

    
56
################################################################################
57
# EXAMPLE: Print only messages of level WARN or above in the package com.foo:
58
# log4j.logger.com.foo=WARN
59

    
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
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
(24-24/51)