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 Avinash Sridhar <av...@gmail.com> on 2006/02/15 20:29:17 UTC

Question about getting date format

Hello All,
       I am maintaing some code. The requirement is to change this format

6-02-15, which, I am hoping it is coming from here ,defaultProps.setProperty(
"log4j.appender.main.DatePattern", "'.'yyyy-MM-dd") ;

i changed to defaultProps.setProperty( "log4j.appender.main.DatePattern",
"'.'MM-dd-yyyy") ;

and expected the .log file to show up in this format 02-15-6, but i didnt
get it in this format. How do i go about doing this?.

Kindly let me know if you require some more information regarding the code.

Thanks for looking in

Avinash