File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes Logfile only written on shutdown Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Logfile only written on shutdown" Watch "Logfile only written on shutdown" New topic

Logfile only written on shutdown

Vik Ve

Joined: Jun 01, 2012
Posts: 1
Hey guys,
first i have to gratulate for this great board. You delivered many answers to questions i had. Unfortunately there seems to be no solution on the internet for the following problem:
I'm running JBoss 6.1 Final with it's built in logging service (which is not log4j anymore). Our application is writing things to the logging service, and these things appear in the console and in the log-file. Unfortunately does JBoss only write lines to the logfile, when i shutdown jboss. Before the file is empty (or only has the entries from the last shutdown).
How can I configure JBoss to write lines to the logfile, as they are printed on the console.

Here's a snippet of my jboss-logging.xml
<level name="INFO"/>
<!-- <pattern-formatter pattern="%d %-5p [%c] (%t) %m%n"/> -->
<pattern-formatter pattern="%d %-5p [%c] (%t) %s%E%n"/>
Thomas Tamoniczi

Joined: Apr 15, 2010
Posts: 6
Same problem for me, did you find a solution?
I agree. Here's the link:
subject: Logfile only written on shutdown
It's not a secret anymore!