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?
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?