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=metacat-index %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
#log4j.logger.edu.ucsb.nceas.metacat.dataone=DEBUG
60
#log4j.logger.edu.ucsb.nceas.metacat.admin.upgrade=DEBUG
61
#log4j.logger.org.dataone.client.auth.CertificateManager=DEBUG
62
#log4j.logger.edu.ucsb.nceas.metacat.dataone.SystemMetadataFactory=TRACE
63
#log4j.logger.edu.ucsb.nceas.metacat.dataone.CNodeService=TRACE
64
#log4j.logger.edu.ucsb.nceas.metacat.common.query=INFO
65

    
(9-9/9)