If you want to do printf'ing in a web app, IMHO you're better off doing it to a file 
you can tail.  I don't believe the destination of the standard streams is defined in 
the servlet spec, so whatever you solution you come up with, you'd have to rethink if 
your app is supposed to run in a different container.

Try Log4j, another Jakarta subproject.  It's a soopah easy & powerful logger.

GL!

- r

On Thu, 16 Aug 2001 10:38:10 -0500 [EMAIL PROTECTED] wrote:
> Hello,
> 
> I have enabled output-to-log  redirection for my  Tomcat 3.2.3. It works
> fine until System.err messages need to be output from the code.
> Those messages are still going to the console .  Therefore,  cannot close
> the console( terminal where I start my Tomcat from ). I tried to
> 
> ./startup.sh 2>&1 >/tmp/log and then : teil -f /tmp/log.  Not all System.err
> get there. What's the preferred way to manage System.err messages?
> Is it an ugly way to output debugging info for the code run by Tomcat? Is
> there external Tomcat objects that manage such System.err better ?
> 
> Any help will be greatly appreciated.
> 
> 
> Thanks,
> 
> --dimitry.



Reply via email to