Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-5457

As an Admin, I want to rely on CrowdHomeLogAppender to change Crowd's log file name

XMLWordPrintable

    • 2
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Problem Definition

      Unlike JIRA, in Crowd I am unable to change the log file name by adjusting CrowHomeLogAppender log4 properties.
      In JIRA, an administrator is able to modify its log file properties, including the log file name, by making changes on JIRAHomeAppender.
      In Crowd, however, an admin needs to comment Crowd's appender and use Apache's generic RollingFileAppender in order to make those changes.

      Suggested Solution

      To use CrowHomeLogAppender class in order to change log file name (and other properties), as JIRA does.

      Workaround

      If a Crowd admin wishes to change log file properties in Crowd, they need to:

      1. comment this line in <crowd_install_dir>/crowd_webapp/WEB-INF/classes/log4j.properties:
        log4j.appender.crowdlog=com.atlassian.crowd.console.logging.CrowdHomeLogAppender
      1. add this line (RollingFileAppender appender class) (see CWD-5454 for more details):
        log4j.appender.crowdlog=org.apache.log4j.RollingFileAppender
      1. add the following property to the new log appender:
        log4j.appender.crowdlog.File=<new_file_name.log>
      1. For reference: Logging And Profiling
      2. Restart Crowd, so the changes can be applied

              Unassigned Unassigned
              omedeiros@atlassian.com Osimar M. (Osi) | Atlassian Support (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: