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

artemis.log file after rotation remains empty

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • AMQ 7.11.6.GA
    • logging
    • None
    • 1
    • False
    • None
    • False
    • Workaround Exists
    • Hide

      Using the <instance dir>/bin/ commands can result in the reported behavior.  A workaround for this is to use the commands from <install dir>/bin/.

      Show
      Using the <instance dir>/bin/ commands can result in the reported behavior.  A workaround for this is to use the commands from <install dir>/bin/.
    • Moderate

      • One of our customers reported that after setting a cron policy from log4j.properties to rotate every minute, the artemis.log file remained empty.
         
      • Env:
           - AMQ 7.11.6
         
        -Here are the steps to reproduce the issue:
          - Create a broker instance with ./artemis create command. Do not allow anonymous access.
          - Change within log4j2.properties the artemis log file pattern and its cron policy to have the file rotate upon a minute.
          - Start the broker instance with ./artemis run
          - Once you notice the artemis log file has rotated, from another window, run an  /artemis producer command with a wrong password. 
      • cron policy:
          - appender.log_file.policies.cron.schedule = 0 * * * * ? * attaching the log4j2.properties file for reference. - log4j2.properties
      • Problem: 

        - We may loss some logging details. 

        - The logs are visible in the artemis console (CLI) but not getting printed in artemis.log file.

       

              dbruscin Domenico Francesco Bruscino
              rhn-support-slakade Shivam Lakade
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated: