Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

flush on System.out useless under Tomcat?

Status
Not open for further replies.

MatEngel

Programmer
Jul 10, 2001
12
DE
Hi,

I "inherited" a Tomcat application that does some logging on System.out. Now I have a problem with a loop in a called function. That means that the actual transaction does not come to its end, and therefore I do not get the last log entries.

I tried to repair that by inserting a call System.out.flush() after each System.out.print(). That works fine in "normal" programs but does not work under Tomcat.

Does anybody know why? And what I could do as a simple solution?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top