3 Replies Latest reply on Jun 28, 2012 11:05 AM by António Ribeiro

    periodic-rotating-file-handler rotate at 12PM instead 12AM

    immobilia immobilia Newbie

      How to change the date of log rotate from 12AM to 21PM ?

       

      I use this, on jboss-logging.xml :

       

         <periodic-rotating-file-handler
               file-name="${jboss.server.log.dir}/server.log"
               name="FILE"
               autoflush="true"
               append="true"
               suffix=".yyyy-MM-dd">  
      

       


      And result is files date including log of day file 12AM to 12AM on next day :

       

      server.log

      2011-02-25 12:00

      ...

      ...

      NOW

       

      server.log.2011-02-24

      2011-02-24 12:00

      ...

      ...

      ...

      2011-02-25 11:59

       

       

      Second question : somebody has try to configure keeping Period ?