Where do System.out and System.err go in Tomcat?

2014-10-10 Thread M. D.
Hello devs, I saw this post on the Internet: http://www.jguru.com/faq/view.jsp?EID=302980 Where do System.out and System.err go in Tomcat? By default, they will go to the console where the tomcat is started. You have to modify the startup scripts to redirect them to appropriate files. See

Re: Where do System.out and System.err go in Tomcat?

2014-10-10 Thread Ameer Mawia
:19 PM, M. D. mo...@abv.bg wrote: Hello devs, I saw this post on the Internet: http://www.jguru.com/faq/view.jsp?EID=302980 Where do System.out and System.err go in Tomcat? By default, they will go to the console where the tomcat is started. You have to modify the startup scripts

Re: Where do System.out and System.err go in Tomcat?

2014-10-10 Thread Ameer Mawia
=302980 Where do System.out and System.err go in Tomcat? By default, they will go to the console where the tomcat is started. You have to modify the startup scripts to redirect them to appropriate files. See Tomcat Mailing List for a discussion on how to redirect the System.out

Re: Where do System.out and System.err go in Tomcat?

2014-10-10 Thread Ameer Mawia
/view.jsp?EID=302980 Where do System.out and System.err go in Tomcat? By default, they will go to the console where the tomcat is started. You have to modify the startup scripts to redirect them to appropriate files. See Tomcat Mailing List for a discussion on how to redirect

Capturing System.out on a Mac

2012-04-27 Thread Dola Woolfe
Hi, We just switched from Windows to Mac. On Windows, when we started tomcat in the command window, a new window would pop up that contains all the output of System.out.  But on a Mac, no new window shows up and we are missing all the output. Is there a quick fix to this? Many thanks

Re: Capturing System.out on a Mac

2012-04-27 Thread Henrique Ordine
the output of System.out. But on a Mac, no new window shows up and we are missing all the output. Is there a quick fix to this? Many thanks in advance, Dola - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org

Re: Capturing System.out on a Mac

2012-04-27 Thread Dola Woolfe
They don't contain the output of System.out? Are you expecting them to?

Re: Capturing System.out on a Mac

2012-04-27 Thread Derek Beauregard
Catalina.out should have anything written to stdout/stderr. Be careful as this file is not rotated and will grow for ever. Any web apps should be using logging and not System.out. Also you could start tomcat with the 'run' command rather than the 'start' command to run it in the foreground

Re: Capturing System.out on a Mac

2012-04-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dola, On 4/27/12 12:19 PM, Dola Woolfe wrote: We just switched from Windows to Mac. On Windows, when we started tomcat in the command window, a new window would pop up that contains all the output of System.out. But on a Mac, no new window

Re: Capturing System.out on a Mac

2012-04-27 Thread Dola Woolfe
Thank you and Christopher! I appreciate the point about logging, but what if I am using a library that utilizes System.out? Thanks again, Dola - Original Message - From: Derek Beauregard dbeaureg...@vmware.com To: Tomcat Users List users@tomcat.apache.org Cc: Sent: Friday, April 27

RE: Capturing System.out on a Mac

2012-04-27 Thread Caldarale, Charles R
From: Dola Woolfe [mailto:dolac...@yahoo.com] Subject: Re: Capturing System.out on a Mac I appreciate the point about logging, but what if I am using a library that utilizes System.out? Then you really, really need to file a bug report with the maintainers of the library for writing anti

RE: System.out is not going to catalina.out

2011-11-28 Thread Chris Moore
through slf4j, Hibernate is persisting objects, and everything is good. Chris -Original Message- From: Chris Moore [mailto:chrismo...@surewest.net] Sent: Sunday, November 27, 2011 10:30 AM To: users@tomcat.apache.org Subject: System.out is not going to catalina.out I'm new to using

System.out is not going to catalina.out

2011-11-27 Thread Chris Moore
simply writing to System.out. All the documentation I can find says that System.out should get written to catalina.out, but I'm not seeing it. I do see deploying and undeploying messages in catalina.out, so I know I've got the right file and it is getting logged to, but I don't see anything

Re: System.out is not going to catalina.out

2011-11-27 Thread Mark Thomas
for help with - I can't seem to get any kind of logging to work, including simply writing to System.out. All the documentation I can find says that System.out should get written to catalina.out, but I'm not seeing it. I do see deploying and undeploying messages in catalina.out, so I

RE: System.out is not going to catalina.out

2011-11-27 Thread Caldarale, Charles R
From: Chris Moore [mailto:chrismo...@surewest.net] Subject: System.out is not going to catalina.out I can't seem to get any kind of logging to work, including simply writing to System.out. You really shouldn't be using System.out for logging; you webapp should include a logging framework

Re: System.out is not going to catalina.out

2011-11-27 Thread Konstantin Kolinko
can't seem to get any kind of logging to work, including simply writing to System.out.  All the documentation I can find says that System.out should get written to catalina.out, but I'm not seeing it.   I do see deploying and undeploying messages in catalina.out, so I know I've got

Re: System.out is not going to catalina.out

2011-11-27 Thread André Warnier
for help with - I can't seem to get any kind of logging to work, including simply writing to System.out. All the documentation I can find says that System.out should get written to catalina.out, but I'm not seeing it. I do see deploying and undeploying messages in catalina.out, so I know I've got

System.out anf tomcat 6

2011-03-01 Thread jason johnson
I am using tomcat 6.0.16 and windows xp. So I have been looking on the web for hours trying to find how to enabled System.out in tomcat 6. I used to have tomcat 5.0.x When I used System.out.println(text); the text would be written to a stdout.log file. Now that I am using tomcat 6, I can't

RE: System.out anf tomcat 6

2011-03-01 Thread Caldarale, Charles R
From: jason johnson [mailto:jasonjohnson1...@yahoo.com] Subject: System.out anf tomcat 6 I am using tomcat 6.0.16 and windows xp. Time to upgrade - that's over three years old (and we won't say anything about your OS...). Now that I am using tomcat 6, I can't find the stdout.log file

How to add tomcat messages and System.out to log

2008-05-06 Thread Michal Singer
Hi. I am using tomcat 6 log4j configuration. I can't see the tomcat source files log messages in the log. and also i can't see the System.out in the log. I tried using: swallowOutput=true in the context file I also configured in the log4j.properties: log4j.logger.org.apache=DEBUG, FILE

Re: No logging (or System.out) when I activate virtual hosts

2007-01-16 Thread Vacuum Joe
Does anyone have any ideas on this? This whole thing is basically not usable for real work if exceptions are silently dropped, which is what is happening. Surely someone has implemented some kind of log system that works in Tomcat? Or at least there's a way to dump exceptions to System.out

Re: No logging (or System.out) when I activate virtual hosts

2007-01-16 Thread Hassan Schroeder
On 1/16/07, Vacuum Joe [EMAIL PROTECTED] wrote: Does anyone have any ideas on this? This whole thing is basically not usable for real work if exceptions are silently dropped, which is what is happening. Surely someone has implemented some kind of log system that works in Tomcat? When will

Re: No logging (or System.out) when I activate virtual hosts

2007-01-16 Thread Vacuum Joe
When will you get the idea to take this to a JBoss list??? Logging in Tomcat works absolutely fine with virtual hosts in standalone mode, right out of the box. I also asked on a JBoss forum and they thought it's Tomcat. Right now I'm going through the JBoss deployer code, and will set up test

Re: No logging (or System.out) when I activate virtual hosts

2007-01-16 Thread Hassan Schroeder
On 1/16/07, Vacuum Joe [EMAIL PROTECTED] wrote: I also asked on a JBoss forum and they thought it's Tomcat. heh. :-) ... will set up test cases and trace the whole thing, You might want to install the same version of Tomcat standalone, and create a comparable virtual host configuration

RE: No logging (or System.out) when I activate virtual hosts

2007-01-16 Thread Caldarale, Charles R
From: Vacuum Joe [mailto:[EMAIL PROTECTED] Subject: Re: No logging (or System.out) when I activate virtual hosts Does anyone have any ideas on this? This whole thing is basically not usable for real work if exceptions are silently dropped, which is what is happening. Surely someone has

Re: No logging (or System.out) when I activate virtual hosts

2007-01-16 Thread Vacuum Joe
config of logging and System.out. I assume it's possible for Tomcat to block apps from messing around like that, and it should. What a nightmare to figure out. This is so fragile and broken. It's like the old Windows 95 days where a misbehaving app can mess up everything else

Re: No logging (or System.out) when I activate virtual hosts

2007-01-15 Thread Vacuum Joe
I'm tracking down part of the problem. I think this relates to JULI, a terrible mistake that happened around Tomcat 5.5.9. It is fragile junk which results in no log entries whenever virtual hosting is used. I can't figure out how to get it to do anything more sophisticated than silently

RE: No logging (or System.out) when I activate virtual hosts

2007-01-15 Thread Caldarale, Charles R
From: Vacuum Joe [mailto:[EMAIL PROTECTED] Subject: Re: No logging (or System.out) when I activate virtual hosts I'm running Tomcat, embedded within JBoss. I think this relates to JULI, a terrible mistake that happened around Tomcat 5.5.9. It is fragile junk which results in no log

Re: No logging (or System.out) when I activate virtual hosts

2007-01-15 Thread Vacuum Joe
What a curious thing to say. I'm running JULI in standalone Tomcat 5.5.20 with multiple hosts with all expected log files created and log entries made. It's what I'm observing and it's totally reproducible. For all my apps that are not on virtual hosts, logging works fine. For apps that are on

Re: No logging (or System.out) when I activate virtual hosts

2007-01-15 Thread Vacuum Joe
I found a partial solution (requires Java 6): I wrote my own class: class MyLogger { public static void log(String message) { if(System.console() != null) System.console().printf(consoleLogger: %s\n, message); } } This has the unique advantage of working, unlike System.out

RE: No logging (or System.out) when I activate virtual hosts

2007-01-15 Thread Caldarale, Charles R
From: Vacuum Joe [mailto:[EMAIL PROTECTED] Subject: Re: No logging (or System.out) when I activate virtual hosts Is some system of dump all exceptions to the console possible in Tomcat? But unless you've changed your environment, you're not using the logging facilities of Tomcat - you're

Re: No logging (or System.out) when I activate virtual hosts

2007-01-15 Thread Vacuum Joe
But unless you've changed your environment, you're not using the logging facilities of Tomcat - you're using those of JBoss. We always get the full stack traces under either. Are you sure you haven't disabled logging in whichever you're actually using? I'm sure what's happening is there is a

Re: flushing system.out

2006-06-16 Thread Glenn Holliday
. Tim Funk [EMAIL PROTECTED] 06/16/2006 07:14 AM Please respond to Tomcat Users List users@tomcat.apache.org To Tomcat Users List users@tomcat.apache.org cc Subject Re: flushing system.out

Re: flushing system.out

2006-06-16 Thread Filip Hanik - Dev Lists
. Tim Funk [EMAIL PROTECTED] 06/16/2006 07:14 AM Please respond to Tomcat Users List users@tomcat.apache.org To Tomcat Users List users@tomcat.apache.org cc Subject Re: flushing system.out I doubt you want to print to system.out in a servlet (or jsp

Re: flushing system.out

2006-06-16 Thread Nishant Deshpande
I'm using Tomcat 5.0.28 and SuSe Linux 9.3 On 6/15/06, Mir Kasim Ali [EMAIL PROTECTED] wrote: Can u tell me which OS ure using and what version of Tomcat On 6/16/06, Nishant Deshpande [EMAIL PROTECTED] wrote: i'm printing stuff out to system.out in tomcat, but it doesn't get flushed till

flushing system.out

2006-06-15 Thread Nishant Deshpande
i'm printing stuff out to system.out in tomcat, but it doesn't get flushed till the end of the request. (i've tried system.out.flush()) has anyone got solutions to this problem? i'm not sure if its a tomcat problem or some OS / jvm thing... thanks

Re: flushing system.out

2006-06-15 Thread Mir Kasim Ali
Can u tell me which OS ure using and what version of Tomcat On 6/16/06, Nishant Deshpande [EMAIL PROTECTED] wrote: i'm printing stuff out to system.out in tomcat, but it doesn't get flushed till the end of the request. (i've tried system.out.flush()) has anyone got solutions to this problem

system.out

2006-03-24 Thread Gilbert, Antoine
How to redirect system.out and system.err to a file to a specific location and with a specific name ?

Re: system.out

2006-03-24 Thread Nic Daniau
[EMAIL PROTECTED] wrote: How to redirect system.out and system.err to a file to a specific location and with a specific name ?

Re: system.out

2006-03-24 Thread Martin Gainty
http://logging.apache.org/log4j/docs/download.html - Original Message - From: Gilbert, Antoine [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, March 24, 2006 2:51 PM Subject: system.out How to redirect system.out and system.err to a file to a specific

swallowOutput and System.out in Tomcat 5.5

2006-02-22 Thread Randy Hoffman
Is it true that System.out is no longer swallowed by Tomcat 5.5 using swallowOutput=true? I have seen mixed messages on this and definitely cannot get it to work. I am running Tomcat 5.5.15 on RHEL4 and have a 3rd party webapp that uses System.out for messages. I am running it with other