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

Logging and profiling - Changing the Destination of the Crowd Log File section needs adjustment

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • None
    • Documentation
    • None
    • 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.

    Description

      Logging and Profiling for Crowd has a "Changing the Destination of the Crowd Log File", that mentions the following, when editing log4.properties file:

      1. Look for the org.apache.log4j.RollingFileAppender entry in the 'Log File Locations' section of the file. This appender controls the default logging destination described above.

      The issue is, the class {{org.apache.log4j.RollingFileAppender }}does not exist in the default log4j.properties file. That leads to a confusion on how to properly adjust logging settings.

       Documentation link: https://confluence.atlassian.com/crowd/logging-and-profiling-24248601.html

      If possible, please add detailed instructions on how to change the log file destination and also how to create a new file appender.

      An idea would be to use Confluence's log4j.properties file header below as starting point:

      ###
      # LOGGING LOCATION AND APPENDER
      #
      # Here we define the default appender which after bootstrap will log to logs/atlassian-confluence.log
      # within your configured confluence.home. Prior to that, logging will be to the console.
      #
      # Use the ConsoleAppender for development to leave the logging configuration up to the app server/IDEA.
      #
      # If you want to log to a different location uncomment the RollingFileAppender line and the File setting
      # as instructed below.
      ###
      log4j.appender.confluencelog=com.atlassian.confluence.logging.ConfluenceHomeLogAppender
      # Comment the above line and uncomment the following 2 lines if you want to log to a specific location
      #log4j.appender.confluencelog=org.apache.log4j.RollingFileAppender
      #log4j.appender.confluencelog.File=${catalina.home}/logs/atlassian-confluence.log

        

       

      Attachments

        Issue Links

          Activity

            People

              mmiara Mateusz Miara (Inactive)
              omedeiros@atlassian.com Osimar Medeiros
              Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: