Project

General

Profile

« Previous | Next » 

Revision 10199

Added by Jing Tao about 7 years ago

Add the method name and line number in the statment.

View differences:

metacat-index/src/main/resources/log4j.properties
42 42
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
43 43

  
44 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
45
#log4j.appender.stdout.layout.ConversionPattern=metacat-index %d{yyyyMMdd-HH:mm:ss}: [%p]: %m [%c]%n
46
log4j.appender.stdout.layout.ConversionPattern=metacat-index %d{yyyyMMdd-HH:mm:ss}: [%p]: %m [%C:%M:%L]%n
46 47

  
47 48
# %p -> priority level of the event - (e.g. WARN)
48 49
# %m -> message to be printed

Also available in: Unified diff