Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Logfile only written on shutdown

 
Vik Ve
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
---------------------------------------------
<file-handler
file-name="/var/log/jboss/logfile.log"
name="LOG_FILE"
autoFlush="true"
append="true">
<level name="INFO"/>
<error-manager>
<only-once/>
</error-manager>
<formatter>
<!-- <pattern-formatter pattern="%d %-5p [%c] (%t) %m%n"/> -->
<pattern-formatter pattern="%d %-5p [%c] (%t) %s%E%n"/>
</formatter>
</file-handler>
 
Thomas Tamoniczi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Same problem for me, did you find a solution?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic