tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ingmar Lötzsch <iloetz...@asci-systemhaus.de>
Subject Re: Log4j Date/time logging
Date Tue, 19 Aug 2008 15:29:19 GMT
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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message