log4j.appender.stdout.layout=org.apache.log4j.PatternLayout

## see PatternLayout
## %d{ISO8601} = yyyy-MM-dd HH:mm:ss,SSS
## %d{ABSOLUTE} = HH:mm:ss,SSS
## %-5p = level, left aligned, minimum 5 characters
## %c{1} = last part of the name of the logger
## %m = message
## %n = newline (platform dependend)
## example
log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %-5p %c{1}:%n %m%n

Tokajac schrieb:
How can i simply log the date and the time in each line?
I found several examples around, but none of them works


Regards

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to