Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do i change catalina.out timeformat.

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)

3 answers

2 accepted

2 votes
Answer accepted

JIRA logs are based on files. You will have to make changes in log4j files for any changes in logs.

Yes. Time format is described as %d but how do I modify it?

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

1 vote
Answer accepted

Okay. I will answer myself :D 

First part i changed was at 

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/


# 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 = java.util.logging.SimpleFormatter.


now it's okay

oh, so much action) you can also concatenate into one line:

edit /apache-tomcat/conf/ (for JIRA: \JIRA DIR\conf\<your format>

e.g. %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


for tune I use manuals:

Java Formatter in English 

Java Formatter in Russian 

Excellent! It really works!

Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you