persist previous server.log after server restarts using log4j.xml
Joined: Aug 03, 2009
I am using JBOSS 4.3 and need to store the server.log after server get restarted. It does create a backup file daily but we dont need to override the existing server.log in a day if server gets restarted.changing append to true doesnt look like an option for me.
Changing the Append=true should give you what you are looking for. Are you sure, you are changing this at the correct place? Remember that the jboss log4j.xml file has a commented out FILE appender too. So make sure you are changing this property in the uncommented FILE appender
I am changing it at the right place and can see the change getting reflected.
But because of some limitation I cant use the append property. I am wondering, this is what something so strange I am asking. This makes complete sense to be just rename (using standard backup filename format) the existing log file and create a new log file.