3 Replies Latest reply on Aug 20, 2003 5:01 AM by Jon Barnett

    Appending to lserver.log?

    Jan Nielsen Newbie

      I'm running JBoss 3.0.8 and it seems to me that JBoss does not append to the server.log file when it is started. Instead, the file is overwritten, resulting in loss of all of today's logs before the start. Is that a bug or a misconfiguration?

        • 1. Re: Appending to lserver.log?
          Jon Barnett Master

          The default in the distribution is not to append - APPEND is set to "false". You can change this by modifying your conf/log4j.xml appropriately.

          • 2. Re: Appending to server.log?
            Jan Nielsen Newbie

            Maybe I don't see the big picture but it this a sane choice to do by default? Previous logging messages are lost when restarting the JBoss server...

            • 3. Re: Appending to server.log?
              Jon Barnett Master

              A lot of the configurations are the default "development" settings. Both the JBoss and Tomcat/Jetty settings are defined in this manner. For a production environment, you do an amount of tweaking, including tightening of security. Sanne is working on a production deployment guide and I'm just finishing up the draft section on Apache SSL with JK2.

              The setting is probably sane enough for a development environment where you don't necessarily want a large log accumulation during testing, particularly when you are stopping and starting the server a lot. I guess that is the rationale of the JBoss developers.