I need to display the date and time of actual log info within the catalina.out
log file for my tomcat7 installation. From the web I found the solution of adding this line to the logging.properties
file, but it does not work. I added the following:
1catalina.java.util.logging.SimpleFormatter.format=[%1$td.%1$tm.%1$tY %1$tH:%1$tM:%1$tS,%1$tL
Right now its just a bunch of data that has zero timestamps. I just want the standard yyyymmdd hhmmss
that precedes the INFO or ERROR, etc. in the log output.
what is present right now in my logging.properties
file is this (I added the last line obviously):
java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
1catalina.java.util.logging.SimpleFormatter.format=[%1$td.%1$tm.%1$tY %1$tH:%1$tM:%1$tS,%1$tL
The version I'm using is apache-tomcat-7.0.82
.
Any help you can provide would be great, and thank you in advance.