Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-15975

Couldn't log in separate log files if more then one instance of JIRA started on Tomcat

    XMLWordPrintable

Details

    Description

      When starting more than one instance of JIRA on single Tomcat server with different log file paths in log4j.properties, all logs wrote in first configured logger.
      I.e. I have two applications - production in "ROOT" with logging in atlassian-jira-prod.log and development in "test" with logging in atlassian-jira-test.log on single server, but JIRA 3.13.1 don't logging in different files.
      I set java option "-Dlog4j.debug=true" on Tomcat and get this in logs, that parsed only one file log4j.properties:

      log4j: Using URL [file:/D:/Projects/bin/tomcat/webapps.ext/webapps.prod/ROOT/WEB-INF/classes/log4j.properties] for automatic log4j configuration.
      log4j: Reading configuration from URL file:/D:/Projects/bin/tomcat/webapps.ext/webapps.prod/ROOT/WEB-INF/classes/log4j.properties
      ........
      log4j: Finished configuring.
      2008-11-16 02:54:33,487 Thread-1 INFO [atlassian.jira.startup.JiraStartupLogger] 
      
      ****************
      JIRA starting...
      ****************
      
      2008-11-16 02:54:33,503 Thread-1 INFO [atlassian.jira.startup.JiraStartupLogger] 
      ___ Environment ___________________
      ..........
      
      log4j: Could not find root logger information. Is this OK?
      log4j: Finished configuring.
      2008-11-16 02:54:34,455 Thread-1 INFO [atlassian.jira.startup.JiraStartupLogger] 
      ___ Database Configuration ______
      .....
      2008-11-16 02:54:34,767 Thread-1 INFO [org.quartz.simpl.RAMJobStore] RAMJobStore initialized.
      2008-11-16 02:54:34,767 Thread-1 INFO [org.quartz.impl.StdSchedulerFactory] Quartz scheduler 'JiraQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
      2008-11-16 02:54:34,767 Thread-1 INFO [org.quartz.impl.StdSchedulerFactory] Quartz scheduler version: 1.4.5
      2008-11-16 02:54:38,280 Thread-1 INFO [getaheadplugin.dwr.util.Logger] Logging using commons-logging.
      2008-11-16 02:54:40,980 Thread-1 INFO [atlassian.jira.startup.JiraStartupLogger] 
      ___ Application Properties ________
      .......
      2008-11-16 02:54:40,980 Thread-1 INFO [atlassian.jira.startup.JiraStartupLogger] 
      
      ******************************************************************************************************
      JIRA 3.13.1 build: 333 (Enterprise Edition) started. You can now access JIRA through your web browser.
      ******************************************************************************************************
      

      Some not informative logs skipped.

      Attachments

        Activity

          People

            Unassigned Unassigned
            b86400761134 Andrey Mikuloff
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 7h
                7h