The Java.util.logging.Logger class can print related log information and write log information to a log file
TOMCAT7 default log format output method is Java.util.logging.SimpleFormatter.format such as: APR one, 2018 4:11:48 PM
TOMCAT8 the default log format output method is org.apache.juli.OneLineFormatter such as: 12-apr-2018 15:52:41.446
"Logging.properties", the property file exists under the/jre/lib folder under Java_home, you can modify the related configuration
Like "Yyyy-mm-dd HH:mm:ss" Such a time format, then modify the properties file, add the following sentence:
JAVA.UTIL.LOGGING.SIMPLEFORMATTER.FORMAT=%1$TF%1$th:%1$tm:%1$ts%2$s%n%4$s:%5$s%6$s%n
Note: If you do not have this sentence, the TOMCAT7 default format for Simpleformatter is: "%1$tb%1$td,%1$ty%1$tl:%1$tm:%1$ts%1$tp%2$s%n%4$s:%5$s%6$s%n ";
Questions about the time format in Java.util.logging.Logger usage