• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

stop server.log getting clearedoff on restarts

 
Nainar Mohamed
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can someone please tell with me to stop the JBOSS clearing the server.log file on every restarts.
Basically I want the old loggings in the server.log file also to be present when the server is restarted.
Is there any configuration change in JBOSS, which can retain the old log information in the server.log file, whenever its restarted?

Regards,
Nainar
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's a log4j.xml (or jboss-log4j.xml depending on the version of JBoss you are using) under %JBOSS_HOME%/server/xxx/conf folder where you can set the "Append" attribute of the appender named "FILE" to true. By default the "Append" is set to false

 
Nainar Mohamed
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friend,

This works.
Thanks for your fast reply.

Regards,
Nainar
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic