Project

General

Profile

1
log4j.rootLogger=DEBUG, CONSOLE
2

    
3
### LOGGING TO CONSOLE #########################################################
4
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
5
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
6

    
7
# define the pattern to be used in the logs... 
8
log4j.appender.CONSOLE.layout.ConversionPattern=LSID: [%p]: %m [%c]%n
9

    
10
# %p -> priority level of the event - (e.g. WARN)
11
# %m -> message to be printed
12
# %c -> category name ... in this case name of the class
13
# %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
14
# %M -> print the method name where the event was generated ... can be extremely slow. 
15
# %L -> print the line number of the event generated ... can be extremely slow.
16
# %t -> Used to output the name of the thread that generated the log event
17
# %n -> carriage return
18

    
19
################################################################################
20
# EXAMPLE: Print only messages of level WARN or above in the package com.foo:
21
# log4j.logger.com.foo=WARN
22

    
23
#log4j.logger.edu.ucsb.nceas.metacat=INFO
24

    
(1-1/5)