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 2907 harris
log4j.rootLogger=INFO, 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
log4j.appender.stdout.layout.ConversionPattern=Metacat: [%p]: %m [%c]%n
46 2584 sgarg
47 2667 sgarg
# %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 2584 sgarg
56 2667 sgarg
################################################################################
57 2584 sgarg
# EXAMPLE: Print only messages of level WARN or above in the package com.foo:
58
# log4j.logger.com.foo=WARN
59
60 2667 sgarg
#log4j.logger.edu.ucsb.nceas.metacat=INFO