Revision 2667
Added by sgarg about 19 years ago
lib/log4j.properties | ||
---|---|---|
31 | 31 |
# |
32 | 32 |
################################################################################ |
33 | 33 |
################################################################################ |
34 |
# |
|
35 | 34 |
|
35 |
# set the log level to WARN and the log should be printed to stdout. |
|
36 |
log4j.rootLogger=WARN, stdout |
|
37 |
#log4j.threshold=FATAL, ERROR, WARN, INFO |
|
36 | 38 |
|
37 |
log4j.threshold=ALL |
|
38 |
log4j.rootLogger=ALL, stdout |
|
39 | 39 |
|
40 |
|
|
41 | 40 |
### LOGGING TO CONSOLE ######################################################### |
42 |
|
|
43 | 41 |
log4j.appender.stdout=org.apache.log4j.ConsoleAppender |
44 | 42 |
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout |
45 |
log4j.appender.stdout.layout.ConversionPattern=%c: [%p]: %m [Thread: %t]%n |
|
46 | 43 |
|
47 |
################################################################################ |
|
44 |
# define the pattern to be used in the logs... |
|
45 |
log4j.appender.stdout.layout.ConversionPattern=Metacat: [%p]: %m [%c]%n |
|
48 | 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 |
|
49 | 55 |
|
56 |
################################################################################ |
|
50 | 57 |
# EXAMPLE: Print only messages of level WARN or above in the package com.foo: |
51 | 58 |
# log4j.logger.com.foo=WARN |
52 | 59 |
|
53 |
log4j.logger.edu.ucsb.nceas=DEBUG
|
|
60 |
#log4j.logger.edu.ucsb.nceas.metacat=INFO
|
|
54 | 61 |
|
Also available in: Unified diff
Made logging configuration and format changes in log4j.properties