Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-6608

new artemis.log file is not created when older files are compressed using logging.properties

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • AMQ 7.10.0.GA
    • AMQ 7.9.3.GA
    • broker-core
    • False
    • None
    • False
    • Hide

      As a workaround do not use any extension for
      handler.FILE.suffix=.yyyy-MM-dd.zip
      Instead, keep 
      handler.FILE.suffix=.yyyy-MM-dd
      and write a custom cron job to archive the old logs.

      Show
      As a workaround do not use any extension for handler.FILE.suffix=.yyyy-MM-dd.zip Instead, keep  handler.FILE.suffix=.yyyy-MM-dd and write a custom cron job to archive the old logs.
    • Hide

      Step 1: Update the logging.properties and set 
      handler.FILE.suffix=.yyyy-MM-dd.zip
      Step 2: Start the broker.

      Step 3: Observe the logs in the broker.

      Step 4: Stop the broker

      Step 5: Change the system date 

      Step 6: Start the broker again

       

      Expectation: The artemis.log created a day before should be zipped with the date. And a new artemis.log should be created with only new date's logs

      Actual: The artemis.log file get zipped but a new artemis.log file is not created instead the logs are appended to the old artemis.log file.

      Show
      Step 1: Update the logging.properties and set  handler.FILE.suffix=.yyyy-MM-dd.zip Step 2: Start the broker. Step 3: Observe the logs in the broker. Step 4: Stop the broker Step 5: Change the system date  Step 6: Start the broker again   Expectation: The artemis.log created a day before should be zipped with the date. And a new artemis.log should be created with only new date's logs Actual: The artemis.log file get zipped but a new artemis.log file is not created instead the logs are appended to the old artemis.log file.

      In the logging.properties if we have handler.FILE.suffix=.yyyy-MM-dd.zip, every day a new zip file with artemis.log is created.

      It is expected once the old artemis.log is zipped then the new artemis.log file should contain new logs instead of that the artemis.log in created containing new logs as well as the old logs.

              rhn-support-jbertram Justin Bertram
              rhn-support-shchavan Shrikant Chavan (Inactive)
              Dominik Lenosi Dominik Lenosi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: