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]

Reply via email to