>From a posting I've unearthed from jGuru.com, it stated that redirecting the
messages is as simple as using the command:
        startup.sh > output.log
in Unix. As I have mentioned, I am running in a Win NT environment. I have
tried the DOS of equivalent of piping the output by:
        \bin\startup > tomcat.log
but the trace() lines are still being sent to the console instead of the log
file.

What else is there that I could do?

-----Original Message-----
From: Samson, Lyndon [IT] [mailto:[EMAIL PROTECTED]]
Sent: 24 January 2001 16:47
To: [EMAIL PROTECTED]
Subject: RE: How do I redirect console messages to a log file?


If you are using *nix you could look up the system command tee, but if
apache is using stderr it wont work. Its pretty easy to write a little C
program ( someone prob. already has ) to do this.

PS I knew a guy who used to work @ reef, Ross Dyson ring a bell?



-----Original Message-----
From: Erick Ramirez [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 24, 2001 3:28 PM
To: [EMAIL PROTECTED]
Subject: How do I redirect console messages to a log file?


I am running Tomcat 3.2.1 on top of Apache 1.3 in a NT Environment.

I have tried modifying the <Logger> element in server.xml so that it reads:

<Logger name="tc_log"
            path="logs/tomcat.log"
            verbosityLevel = "DEBUG"
/>

but it seems to only report "Context" messages, as well as exceptions.

I have tried modifying wrapper.properties so that it reads:

wrapper.stdout=$(wrapper.tomcat_home)\logs\stdout.log
wrapper.stderr=$(wrapper.tomcat_home)\logs\stderr.log


and once again, it only reports some of the messages to these files and most
of the trace lines are still being reported to the console.

I am using a trace() which by default, sends messages to System.out and I
would like these lines to be piped into a log file.

Can anyone help?

Regards,

ERICK RAMIREZ
ControlServlet Team
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>

REEF SA/NV
Tour Gallieni II
36, ave du Gen de Gaulle
93006 Bagnolet FRANCE
Tel +33 1 5582 9449

www.reef.com <http://www.reef.com/>


Business is Dynamic. Take Control.





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to