Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-6384

log4j.properties doesn't respect $ACTIVEMQ_DATA; please add ACTIVEMQ_LOG

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Abandoned
    • 5.13.4
    • None
    • Distribution
    • None

    Description

      The log4j.properties file in the distribution specifies these two log file locations:

      log4j.appender.logfile.file=${activemq.base}/data/activemq.log
      
      log4j.appender.audit.file=${activemq.base}/data/audit.log
      

      Meanwhile, the init script allows you to set $ACTIVEMQ_DATA separately from ACTIVEMQ_BASE.

      I would suggest one of two solutions:

      1) (preferred): create a new ACTIVEMQ_LOGDIR variable that can be set in the /etc/default/activemq file, and have log4j.properties use that as the log file location

      2) if that's a problem for some reason, at least make things consistent, and have the log4j.properties file use the value from ACTIVEMQ_DATA directly.

      Attachments

        Activity

          People

            Unassigned Unassigned
            danpritts Dan Pritts
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: