Project

General

Profile

« Previous | Next » 

Revision 10198

Added by Jing Tao over 7 years ago

Add the method name and line number in the statement.

View differences:

lib/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=@build.context@ %d{yyyyMMdd-HH:mm:ss}: [%p]: %m [%c]%n
45
#log4j.appender.stdout.layout.ConversionPattern=@build.context@ %d{yyyyMMdd-HH:mm:ss}: [%p]: %m [%c]%n
46
log4j.appender.stdout.layout.ConversionPattern=@build.context@ %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