-
1. Re: Jboss deletes boot.log during startup
ud1 Jul 17, 2012 3:19 AM (in response to ramsrib)Setters are invoked in the order they are listed in "handler.BOOTLOG.properties" property, "append" should go before "fileName":
# Additional logger names to configure (root logger is always configured) #loggers=org.jboss.whatever,org.jboss.foo loggers=org.jboss.system.server.ServerInfo, org.jboss.detailed.classloader.ClassLoaderManager # Root logger level logger.level=INFO # Root logger handlers logger.handlers=FILE # Allow debug logging from ServerInfo to get the system properties dump logger.org.jboss.system.server.ServerInfo.level=DEBUG logger.org.jboss.detailed.classloader.ClassLoaderManager.level=ERROR # Boot log file handler configuration handler.FILE=org.jboss.logmanager.handlers.FileHandler handler.FILE.level=DEBUG handler.FILE.properties=autoFlush,append,fileName handler.FILE.autoFlush=true handler.FILE.append=true handler.FILE.fileName=../server/default/log/boot.log handler.FILE.formatter=PATTERN # Formatter pattern configuration formatter.PATTERN=org.jboss.logmanager.formatters.PatternFormatter formatter.PATTERN.properties=pattern formatter.PATTERN.pattern=%d{HH:mm:ss,SSS} %-5p (%t:%x) [%c] %s%E%n
-
2. Re: Jboss deletes boot.log during startup
xerces8 Sep 26, 2013 6:27 AM (in response to ramsrib)I have the same problem with 7.1.1.Final
On each restart boot.log is overwritten.
I have tried to add a "handler.FILE.append=true" line as suggested above, but it does not help.
Regards,
David
-
3. Re: Jboss deletes boot.log during startup
erasmomarciano Sep 26, 2013 7:56 AM (in response to xerces8)Hi
You can try
handler.BOOTLOG.autoFlush=false
OR
handler.BOOTLOG.fileName=${myapp.logdir}/jboss_boot.log add a timestamp into name of the file /jboss_boot.log
-
4. Re: Re: Jboss deletes boot.log during startup
xerces8 Sep 26, 2013 2:23 PM (in response to erasmomarciano)That would not work, as the file content is:
# File handler configuration handler.FILE=org.jboss.logmanager.handlers.FileHandler handler.FILE.level=DEBUG handler.FILE.properties=autoFlush,fileName handler.FILE.autoFlush=true handler.FILE.append=true handler.FILE.fileName=${org.jboss.boot.log.file:boot.log} handler.FILE.formatter=PATTERN
If I change handler.FILE.fileName line to handler.FILE.fileName=/tmp/test.log, then the logs (after restarting JBoss of course) go to /tmp/test.log
so this is the correct place and syntax.
It is just that the handler.FILE.append=true line makes no effect.
What version of JBoss AS is everybody using these days?
-
5. Re: Re: Jboss deletes boot.log during startup
ctomc Sep 26, 2013 4:23 PM (in response to xerces8)David Balažic wrote:
What version of JBoss AS is everybody using these days?
I would say latest nightly build of WildFly you can get it at https://community.jboss.org/thread/224262
Or you could got with 7.2.0.Final (binary released as EAP 6.1.Alpha)
-
6. Re: Re: Jboss deletes boot.log during startup
xerces8 Oct 1, 2013 10:09 AM (in response to ctomc) -
7. Re: Jboss deletes boot.log during startup
khaing211 Dec 10, 2015 1:06 PM (in response to ramsrib)Hi all,
Here is the solution:
You have to declare "append" before "fileName" in properties value. So it would pick up append value (true).
handler.BOOT.properties=append,autoFlush,fileName handler.BOOT.append=true
The rest is same.