logging.properties configuration - log stdout and stderr to a file
Hi, How to configure tomcat 5 to log stderr and stdout to the log file. I tried it using logging.properties but the stdout and stderr is displaying only in the console. How to log into the file? I am using tomcat 5.5.9 on windows OS. How to configure logging.properties file? With regards, R. SANTHANA GOPALAN. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: logging.properties configuration - log stdout and stderr to a file
Hello Santhana, I just went through this and found useful info here $CATALINA_HOME\webapps\tomcat-docs\logging.html and here: http://minaret.biz/tips/tomcatLogging.html Good luck! William BC Crandall bc.crandall [around] earthlink.net - Original Message - From: SANTHANA GOPALAN [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: 01 June 2005 2:01 AM Subject: logging.properties configuration - log stdout and stderr to a file Hi, How to configure tomcat 5 to log stderr and stdout to the log file. I tried it using logging.properties but the stdout and stderr is displaying only in the console. How to log into the file? I am using tomcat 5.5.9 on windows OS. How to configure logging.properties file? With regards, R. SANTHANA GOPALAN. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Split catalina.out to separate stdout and stderr?
Or just read and undrestand the startup parameters and go catalina run out.txt - Original Message - From: Tim Funk [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Thursday, February 17, 2005 11:43 AM Subject: Re: Split catalina.out to separate stdout and stderr? You'd need to write a listener (or other code) which calls the appropriate System calls to set out and err in the JVM. -Tim [EMAIL PROTECTED] wrote: Hi, I'm runnning Tomcat 4.1.30 on Linux/Unix. I'm trying to get our app's debug info from catalina.out split into 2 separate stderr and stdout files. I'm able to do this in Windows via the System.out File and System.err File registry parameters, but I can't find a way to do this in Linux/Unix. I've tried a couple things that haven't worked: (A) Changing catalina.sh from $CATALINA_BASE/logs/catalina.out 21 to 2 $CATALINA_BASE/logs/catalina.err 1 $CATALINA_BASE/logs/catalina.out (B) JAVA_OPTS and CATALINA_OPTS with -Dstdout= and -Dstderr= params (C) JAVA_OPTS and CATALINA_OPTS with -outfile= and -errfile= params Is there any easy way to do this? Thanks in advance for any assistance. ~RZ __ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Split catalina.out to separate stdout and stderr?
Hi, I'm runnning Tomcat 4.1.30 on Linux/Unix. I'm trying to get our app's debug info from catalina.out split into 2 separate stderr and stdout files. I'm able to do this in Windows via the System.out File and System.err File registry parameters, but I can't find a way to do this in Linux/Unix. I've tried a couple things that haven't worked: (A) Changing catalina.sh from $CATALINA_BASE/logs/catalina.out 21 to 2 $CATALINA_BASE/logs/catalina.err 1 $CATALINA_BASE/logs/catalina.out (B) JAVA_OPTS and CATALINA_OPTS with -Dstdout= and -Dstderr= params (C) JAVA_OPTS and CATALINA_OPTS with -outfile= and -errfile= params Is there any easy way to do this? Thanks in advance for any assistance. ~RZ __ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Split catalina.out to separate stdout and stderr?
You'd need to write a listener (or other code) which calls the appropriate System calls to set out and err in the JVM. -Tim [EMAIL PROTECTED] wrote: Hi, I'm runnning Tomcat 4.1.30 on Linux/Unix. I'm trying to get our app's debug info from catalina.out split into 2 separate stderr and stdout files. I'm able to do this in Windows via the System.out File and System.err File registry parameters, but I can't find a way to do this in Linux/Unix. I've tried a couple things that haven't worked: (A) Changing catalina.sh from $CATALINA_BASE/logs/catalina.out 21 to 2 $CATALINA_BASE/logs/catalina.err 1 $CATALINA_BASE/logs/catalina.out (B) JAVA_OPTS and CATALINA_OPTS with -Dstdout= and -Dstderr= params (C) JAVA_OPTS and CATALINA_OPTS with -outfile= and -errfile= params Is there any easy way to do this? Thanks in advance for any assistance. ~RZ __ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where do I specify location of stdout and stderr?
We do this by finding the log entry in catalina.sh. It should be something like catalina.out. Change that to whatever you like. I moved it myself to fit how our other app servers work. Ben Ricker On Dec 29, 2004, at 12:39 AM, Stephen Charles Huey wrote: Ok, I just figured out that for the Windows box, we specified the location of the files that the stdout and stderr get routed into in the service install script. However, we're not using any service install script on Linux (should we be doing that?), so where can I specify that all the stdout and stderr should go into some particular log files instead of getting lost into thin air? We need those log files, particularly when we're troubleshooting! Thanks... - Original message - From: Stephen Charles Huey [EMAIL PROTECTED] To: Tomcat User tomcat-user@jakarta.apache.org Date: Tue, 28 Dec 2004 15:40:09 -0600 Subject: Where do I specify location of stdout and stderr? I'm trying to move my Tomcat directory from a Windows machine to a Linux box, and I've already modified the server.xml to take care of path differences, but I've noticed that stdout.log and stderr.log are no longer being generated in the logs directory (I can't find them!). Does anyone have any idea where this would normally be? I've also tried to WinGrep for them in my app code, but so far nothing... I see this in my server.xml, but this doesn't seem to be related to the stderr and stdout log files: !-- Logger shared by all Contexts related to this virtual host. By default (when using FileLogger), log files are created in the logs directory relative to $CATALINA_HOME. If you wish, you can specify a different directory with the directory attribute. Specify either a relative (to $CATALINA_HOME) or absolute path to the desired directory.-- Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ Those log files mentioned above are being generated, but it doesn't really make sense that I would need to add a node here for the stdout and stderr ones if they're already being generated on the Windows box without being mentioned in server.xml... Thanks for any help... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where do I specify location of stdout and stderr?
I'm trying to move my Tomcat directory from a Windows machine to a Linux box, and I've already modified the server.xml to take care of path differences, but I've noticed that stdout.log and stderr.log are no longer being generated in the logs directory (I can't find them!). Does anyone have any idea where this would normally be? I've also tried to WinGrep for them in my app code, but so far nothing... I see this in my server.xml, but this doesn't seem to be related to the stderr and stdout log files: Both stdout and stderr go to TOMCAT_HOME/logs/catalina.out. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Where do I specify location of stdout and stderr?
I'm trying to move my Tomcat directory from a Windows machine to a Linux box, and I've already modified the server.xml to take care of path differences, but I've noticed that stdout.log and stderr.log are no longer being generated in the logs directory (I can't find them!). Does anyone have any idea where this would normally be? I've also tried to WinGrep for them in my app code, but so far nothing... I see this in my server.xml, but this doesn't seem to be related to the stderr and stdout log files: !-- Logger shared by all Contexts related to this virtual host. By default (when using FileLogger), log files are created in the logs directory relative to $CATALINA_HOME. If you wish, you can specify a different directory with the directory attribute. Specify either a relative (to $CATALINA_HOME) or absolute path to the desired directory.-- Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ Those log files mentioned above are being generated, but it doesn't really make sense that I would need to add a node here for the stdout and stderr ones if they're already being generated on the Windows box without being mentioned in server.xml... Thanks for any help... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where do I specify location of stdout and stderr?
Ok, I just figured out that for the Windows box, we specified the location of the files that the stdout and stderr get routed into in the service install script. However, we're not using any service install script on Linux (should we be doing that?), so where can I specify that all the stdout and stderr should go into some particular log files instead of getting lost into thin air? We need those log files, particularly when we're troubleshooting! Thanks... - Original message - From: Stephen Charles Huey [EMAIL PROTECTED] To: Tomcat User tomcat-user@jakarta.apache.org Date: Tue, 28 Dec 2004 15:40:09 -0600 Subject: Where do I specify location of stdout and stderr? I'm trying to move my Tomcat directory from a Windows machine to a Linux box, and I've already modified the server.xml to take care of path differences, but I've noticed that stdout.log and stderr.log are no longer being generated in the logs directory (I can't find them!). Does anyone have any idea where this would normally be? I've also tried to WinGrep for them in my app code, but so far nothing... I see this in my server.xml, but this doesn't seem to be related to the stderr and stdout log files: !-- Logger shared by all Contexts related to this virtual host. By default (when using FileLogger), log files are created in the logs directory relative to $CATALINA_HOME. If you wish, you can specify a different directory with the directory attribute. Specify either a relative (to $CATALINA_HOME) or absolute path to the desired directory.-- Logger className=org.apache.catalina.logger.FileLogger directory=logs prefix=localhost_log. suffix=.txt timestamp=true/ Those log files mentioned above are being generated, but it doesn't really make sense that I would need to add a node here for the stdout and stderr ones if they're already being generated on the Windows box without being mentioned in server.xml... Thanks for any help... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
5.0.18 Catalina.out, stdout and stderr Missing
My 5.0.18 TC has no Catalina.out, stdout and stderr whereas the 5.0.16 one had them straight off. I DO have localhost_logs. Am I missing a simple switch? Cheers ADC FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT
log rotation for stdout and stderr?
We are running Tomcat as a Windows service. The stdout and stderr log files are not rotated when running as a NT service. Also when the service is stopped and started the files are overrwritten. Are there any parameters that need to be set when installing the windows service that can activate log rotation or append to the files? Any other known solutions/suggestions to fix this? Thanks, Don
RE: log rotation for stdout and stderr?
Howdy, This is a FAQ, you could search the archives. A couple of things: 1. catalina.out isn't rotated on unix either. 2. Add swallowOutput=true to you context to make System.out and System.err go into the context logger, which is rotated nightly. 3. Don't use System.out/System.err so much ;) Consider a logging framework like log4j. 4. There are external, free, 3rd party log rotating tools out there, google. Yoav Shapira Millennium ChemInformatics -Original Message- From: Deluca, Don [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2003 11:53 AM To: Tomcat-User (E-mail) Subject: log rotation for stdout and stderr? We are running Tomcat as a Windows service. The stdout and stderr log files are not rotated when running as a NT service. Also when the service is stopped and started the files are overrwritten. Are there any parameters that need to be set when installing the windows service that can activate log rotation or append to the files? Any other known solutions/suggestions to fix this? Thanks, Don This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Stdout and Stderr
Hello, I already find these configuration, at catalinha.sh: org.apache.catalina.startup.Bootstrap $@ start \ $CATALINA_BASE/logs/catalina.out 21 I changed to: org.apache.catalina.startup.Bootstrap $@ start \ $CATALINA_BASE/logs/catalina.out 2 $CATALINA_BASE/logs/catalina.err Thanks! Wagner Danda Jeff Macomber wrote: Generally these messages are in catalina.out or localhost_log... Jeff -Original Message- From: Wagner Danda [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 7:52 PM To: Tomcat Users List Subject: Stdout and Stderr Hello, in tomcat 4, where can I get the stderr and the stdout? Better, where can I see the tomcat errors (like OutOfMemory and others)? Thanks in advance, Wagner Danda -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Stdout and Stderr
Generally these messages are in catalina.out or localhost_log... Jeff -Original Message- From: Wagner Danda [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 16, 2002 7:52 PM To: Tomcat Users List Subject: Stdout and Stderr Hello, in tomcat 4, where can I get the stderr and the stdout? Better, where can I see the tomcat errors (like OutOfMemory and others)? Thanks in advance, Wagner Danda -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Stdout and Stderr
Hello, in tomcat 4, where can I get the stderr and the stdout? Better, where can I see the tomcat errors (like OutOfMemory and others)? Thanks in advance, Wagner Danda -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
stdout and stderr redirection
Hi, Is it possible to redirect the stdout and stderr into log files with tomcat-3.2.3 ? For the moment, we have done it within the tomcat.sh script but it is not very good. We would like to have a log files per context or virtual host. I know it is possible with tomcat-4.0.1 but we don't want to update yet. Michenaud Laurent - Adeuza - [ Développeur Web - Administrateur Réseau ] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
STDOUT and STDERR from jvm disagree -- what's happening!?
Running Tomcat 3.2.1 as an in-process service. Got the system up and going a few times, but then, I seem to have a strange error. When I review the logs jvm.stdout and jvm.stderr, they disagree. stdout indicated that it loaded the jni_connect.dll, saying... Library d:\jakarta-tomcat\bin\win32\i386\jni_connect.dll loaded {...} Running fine stderr disagrees... Failed to loadLibrary() d:\jakarta-tomcat\bin\win32\i386\jni_connect.dll Moreover, I get a strange error in the isapi.log... [jk_jni_worker.c (965)] in open_jvm2, the JVM will ignore unknown options What are the options it's ignoring? Any help is GREATLY appreciated! -- . . . powerlifter lift 'til your eyez bleed 365 bench - 505 deadlift - 515 squat