tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amandeep Jawa" <d...@imagelock.com>
Subject Re: What is the best way to redirect System.out in my servlets running under Tomcat?
Date Mon, 25 Sep 2000 23:21:51 GMT
Craig (& everyone)

I have no real problem with having to re-direct - it just seems like it
should be in a configuration rather than require a change to a shell
script - shell scripts aren't truly portable and that is what configuration
files are for....

Even with doing the redirect in the shell command, I STILL have to add the
System.setOut(System.err);
to my code which is what I really don't like because a) I have to change
code, b) it
seems that now I've reconfigured the JVM & thus other java apps will have
stderr = stdout & c) there is no really good place in my code to call
System.setOut(System.err);


Hence my quest for a better solution - any ideas?

'deep


----- Original Message -----
From: "Craig R. McClanahan" <Craig.McClanahan@eng.sun.com>
To: <tomcat-user@jakarta.apache.org>
Sent: Monday, September 25, 2000 4:04 PM
Subject: Re: What is the best way to redirect System.out in my servlets
running under Tomcat?


> Amandeep Jawa wrote:
>
> >
> > 1) redirecting stdout from my tomcat launch script:
> > $TOMCAT_HOME/bin/startup.sh >tomcat.log 2>tomcat.err
> >
>
> What's your problem with this one?  That's what I do all the time to
redirect
> standard output, and the ">tomcat.log" part works on Windows platforms as
well.
> The Tomcat 4.0 milestone 1 startup scripts, for example, do this by
default.
>
> Craig McClanahan
>
>
> ====================
> See you at ApacheCon Europe <http://www.apachecon.com>!
> Session VS01 (23-Oct 13h00-17h00):  Sun Technical Briefing
> Session T06  (24-Oct 14h00-15h00):  Migrating Apache JServ
>                                     Applications to Tomcat
>
>
>


Mime
View raw message