tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: Where does my stderr go?
Date Tue, 11 Jan 2011 07:55:19 GMT
2011/1/11 Thomas Kloeber <kloeber@ics.de>:
> Konstantin,
>
> Konstantin Kolinko wrote on 11.01.2011 01:03:
>>
>> https://issues.apache.org/bugzilla/show_bug.cgi?id=18462
>
> thanks for sending this link. I'm surprised that this is such an old issue!
> So, if I understand the discussion correctly, Tomcat redirects stderr into
> stdout_XXX.log, right?
>
> Strange though, that I couldn't find my stack trace when I ran
> exception.printStackTrace().
> Either this goes to yet another place, which I can't believe or I must have
> completely missed in, which I can't quite believe either ;)

1. System.out is buffered. So it might get stuck in the buffer. (Just
saying. Have not tried to verify whether it is truth).
System.err.flush() should help.

2. If you used swallowOutput="true" in the context configuration file
(it is "false" by default), then it will be written to the log file of
the Host, i.e. into localhost_* log.

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message