Hi. I have two problems.
1) My catalina.out writes different timestamps. Can I fix it and if I can then how? (both formats are wrong.
1. Nov 25, 2019 10:22:09 AM
2. 2019-11-25 09:32:23,326
And the second question is that how do I make them look like this? How do I change my timeformat for catalina.out
I need. 2019-11-25T10:24:46.292+0200 - (yyyy-MM-dd'T'HH:mm:ss.SSSZ)
JIRA logs are based on log4j.properties files. You will have to make changes in log4j files for any changes in logs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Fixed this part
2. 2019-11-25 09:32:23,326 now it writes like it should but
1. Nov 25, 2019 10:22:09 AM can't find solution for this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Okay. I will answer myself :D
First part i changed was at log4j.properties
changed %d to %d{yyyy-MM-dd'T'HH:mm:ss.SSSZ}
Second part I changed at jre/lib/logging.propperties
I commented this line out and changed its values
java.util.logging.SimpleFormatter.format=%1$tY-%1$tm-%1$tdT%1$tH:%1$tM:%1$tS:%1$tL%1$tz %2$s%n%4$s: %5$s%6$s%n
I also modified conf/logging.properties.
added.
# formatter attributes = date, source, logger, level, message, thrown
java.util.logging.SimpleFormatter.format = %1$tY-%1$tm-%1$tdT%1$tH:%1$tM:%1$tS:%1$tL%1$tz %2$s%n%4$s: %5$s%6$s%n
and
1catalina.org.apache.juli.AsyncFileHandler.formatter = java.util.logging.SimpleFormatter.
now it's okay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
oh, so much action) you can also concatenate into one line:
edit /apache-tomcat/conf/logging.properties (for JIRA: \JIRA DIR\conf\logging.properties)
1catalina.java.util.logging.SimpleFormatter.format=<your format>
e.g.
1catalina.java.util.logging.SimpleFormatter.format= %1$tY-%1$tm-%1$tdT%1$tH:%1$tM:%1$tS:%1$tL%1$tz %2$s%n%4$s: %5$s%6$s%n
p.s.
for tune I use manuals:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Found this. Added it to /conf/logging.properties
Also didn't work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.