You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Damian Egli <ne...@sharkplanet.com> on 2003/02/19 23:47:57 UTC
minutes instead of month
Hello
if I use the %d option I receive the minutes instead of the month .
[19.16.2003] AWT-EventQueue-0 INFO OCVscroll : Bin im MouseDown, Datum
: 19.2.2003 22:16:44
this is a result after using a test with getDateTimeInstance.
...
dateFormatter =
DateFormat.getDateTimeInstance(DateFormat.DEFAULT, DateFormat.DEFAULT,
new Locale("de", "CH"));
today = new Date();
dateOut = dateFormatter.format(today);
...
cat.info("Bin im MouseDown, Datum : " + dateOut);
The Log4J.properties :
log4j.rootCategory=DEBUG, dest1
log4j.appender.dest1=org.apache.log4j.ConsoleAppender
log4j.appender.dest1.layout=org.apache.log4j.PatternLayout
#Log Formatierung mit Datum Ausgabe
#log4j.appender.dest1.layout.ConversionPattern=[%d{dd MMM yyyy}] %-5p %c
: %m%n
log4j.appender.dest1.layout.ConversionPattern=[%d] %-5p %c : %m%n
Thanks for any tips
regards
Damian
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org