2 Replies Latest reply on Aug 31, 2004 10:06 AM by ssanjeev

    Recreate Log Files

    ssanjeev

      Folks:
      If we delete the jboss.log or any other log written from within the JBoss application server proces, while JBoss is running, it does not recreate them. Can someone help me with this - how to configure Log4J to get this working. Now if I delete the log file while JBoss is running the only way I can see the logs again is by restarting JBoss...which should not be the practical way.
      Please let me know.
      Thanks
      Sanjeev

        • 1. Re: Recreate Log Files
          darranl

          What are you trying to do? Why don't you configure Log4J to truncate the log files after they reach a maximum size, that way you will be able to control the sizes.

          • 2. Re: Recreate Log Files
            ssanjeev

            Here is what we are trying to achieve:
            1. On a monthly basis we run an archive script that tars/compresses the log files etc... and removes the log files from the directory where it originally resides, making room for the newer logs.
            2. We have the log rotation size set too, size is totally under control.
            The problem is when we remove the logs files that JBoss is writing, when JBoss is running, they never get recreated.
            Is there anyway to make JBoss recreate these logs?
            Hope this gives a better picture...
            Thanks