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

XMLWordPrintable

    • 2

      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

            Assignee:
            Unassigned
            Reporter:
            Osimar M. (Osi) | Atlassian Support (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: