I want to capture the log4j logging comments in the following way. Is it possible ? If so then how should my log4j.properties look like ??
My Message : 2009-05-22 17:07:28
Thanks Rink
I want to capture the log4j logging comments in the following way. Is it possible ? If so then how should my log4j.properties look like ??
My Message : 2009-05-22 17:07:28
Thanks Rink
Add following lines in your log4j.properties file:
Use the following conversion pattern:
"%m: %d{yyyy-MM-dd HH:mm:ss}%n"
without the quotes. If you wanted to use ConsoleAppender, yourlog4j.properties
file would contain: