Creating server.log append = true

How to make the log file \\ log \ serve.log added. that is, when I restart JBoss, it should not redefine the contents of the log, but continue from the end?

+3
source share
4 answers

Add <param name="Append" value="true"/>in <Appender>to your conf/jboss-log4j.xmlfile. Several applications may be specified, so make sure you get the one that is processing server.log.

+2
source

Try installing <param name="Append" value="true"/>log4j.xml in your file. This could be in the FileAppender och RollingFileAppender section. Just find the appender that writes to server.log.

+1
source

: (, myapp.log)

: , server.log jboss. - - server.log - , . , , , .

0

Ubuntu 16.04 Linuxes Jboss EAP 6.4.0, , Jboss Eclipse/Windows. append true.

, , , append standalone-full.xml.

 <properties>
   <property name="append" value="true"/>
   <property name="fileName" value="${jboss.server.log.dir}/server.log"/>
0

Source: https://habr.com/ru/post/1727934/


All Articles