Project

General

Profile

1 2584 sgarg
# /**
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 2667 sgarg
# set the log level to WARN and the log should be printed to stdout.
36 5394 berkley
log4j.rootLogger=ERROR, stdout
37 2667 sgarg
#log4j.threshold=FATAL, ERROR, WARN, INFO
38 2584 sgarg
39
40
### LOGGING TO CONSOLE #########################################################
41
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
42
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
43
44 2667 sgarg
# define the pattern to be used in the logs...
45 10198 tao
#log4j.appender.stdout.layout.ConversionPattern=@build.context@ %d{yyyyMMdd-HH:mm:ss}: [%p]: %m [%c]%n
46
log4j.appender.stdout.layout.ConversionPattern=@build.context@ %d{yyyyMMdd-HH:mm:ss}: [%p]: %m [%C:%M:%L]%n
47 2584 sgarg
48 2667 sgarg
# %p -> priority level of the event - (e.g. WARN)
49
# %m -> message to be printed
50
# %c -> category name ... in this case name of the class
51
# %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
52
# %M -> print the method name where the event was generated ... can be extremely slow.
53
# %L -> print the line number of the event generated ... can be extremely slow.
54
# %t -> Used to output the name of the thread that generated the log event
55
# %n -> carriage return
56 2584 sgarg
57 2667 sgarg
################################################################################
58 2584 sgarg
# EXAMPLE: Print only messages of level WARN or above in the package com.foo:
59
# log4j.logger.com.foo=WARN
60 10486 tao
#log4j.logger.edu.ucsb.nceas.metacat.dataone=DEBUG
61
#log4j.logger.edu.ucsb.nceas.metacat.admin.upgrade=DEBUG
62
#log4j.logger.edu.ucsb.nceas.metacat.dataone.SystemMetadataFactory=TRACE
63
#log4j.logger.edu.ucsb.nceas.metacat.dataone.CNodeService=TRACE
64 10440 tao
log4j.logger.org.dataone.client=WARN
65 2584 sgarg
66 5014 daigle
### LOGGING TO REPLICATION FILE #########################################################
67 6765 leinfelder
log4j.logger.ReplicationLogging=INFO, replication
68 5014 daigle
log4j.appender.replication=org.apache.log4j.DailyRollingFileAppender
69 6765 leinfelder
log4j.appender.replication.File=${replication.logfile.name}
70 5014 daigle
log4j.appender.replication.DatePattern='.'yyyy-ww
71
log4j.appender.replication.maxFileSize=100000KB
72 10486 tao
#log4j.appender.replication.maxBackupIndex=10
73
#log4j.appender.replication.threshold=info
74 5014 daigle
log4j.appender.replication.layout=org.apache.log4j.PatternLayout
75
log4j.appender.replication.layout.ConversionPattern=@build.context@ %d{yyyyMMdd-HH:mm:ss}: [%p]: %m [%c]%n