Standardize the Date Format in Catalina.out

XMLWordPrintable

    • 1
    • 1

      Definition

      In catalina.out, we could see two different date format such as:

      18-Feb-2019 15:36:57.753 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 8835 ms
      2019-02-18 15:36:57,795 JIRA-Bootstrap INFO      [c.a.j.config.database.SystemDatabaseConfigurationLoader] Reading database configuration from /Users/annamonica/jira_home/JIRA_80/dbconfig.xml
      

      This is because of JIRA and Tomcat use different formats.

      Suggestion

      Standardized the date format as it will help to facilitate centralized monitoring. Analyzing a unified log format is greatly beneficial to monitor application health and facilitate troubleshooting.

      In logging.properties (taken from this website) - change the default in $jira-install/conf/logging.properties to:

      java.util.logging.ConsoleHandler.level = FINE
      java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
      java.util.logging.SimpleFormatter.format=%1$tF %1$tT %4$s [%2$s] %3$s %5$s %n
      

      Then, restart Jira.

            Assignee:
            Unassigned
            Reporter:
            Anna Cardino (Inactive)
            Votes:
            6 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: