You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by muhammed soyer <mu...@ges.net.tr> on 2004/09/06 13:53:01 UTC
logging something to catalina.out
Hello,
How can I write something to the logfile . "I should study log4j in a few days "..
But if there is an easyway of writing a line to the log files of tomcat ..it should be helpfull to me now ..
-ms
Re: logging something to catalina.out
Posted by muhammed soyer <mu...@ges.net.tr>.
:)
I was thinking that my class is jumping inthe catch block ..So I have tried
these in the catch block and couldnt get it written ..
As always the error is in the place where I am not looking for it :)
Thanks for your answers
-ms
----- Original Message -----
From: "Rhino" <rh...@sympatico.ca>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Monday, September 06, 2004 3:10 PM
Subject: Re: logging something to catalina.out
----- Original Message -----
From: "muhammed soyer" <mu...@ges.net.tr>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Monday, September 06, 2004 7:53 AM
Subject: logging something to catalina.out
Hello,
How can I write something to the logfile . "I should study log4j in a
few days "..
But if there is an easyway of writing a line to the log files of tomcat
..it should be helpfull to me now ..
------------------------------------------
If I'm not mistaken, all you need is:
System.out.println("I should study log4j in a few days...").
Rhino
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
<< Bu mail GESNET sunucusu tarafindan virus kontrolunden gecirilmistir.>>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: logging something to catalina.out
Posted by Rhino <rh...@sympatico.ca>.
----- Original Message -----
From: "Christian Fritze" <Th...@sprawl.de>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Monday, September 06, 2004 8:18 AM
Subject: Re: logging something to catalina.out
> Rhino wrote:
> >
> > If I'm not mistaken, all you need is:
> >
> > System.out.println("I should study log4j in a few days...").
>
> Try replacing 'out' with 'err', then it should work... ;-)
>
Don't *both* System.out.println() and System.err.println() write to
catalina.out? If not, where does System.out.println() write?
I'm not arguing with you; I really don't remember.
Rhino
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: logging something to catalina.out
Posted by Christian Fritze <Th...@sprawl.de>.
Rhino wrote:
>
> If I'm not mistaken, all you need is:
>
> System.out.println("I should study log4j in a few days...").
Try replacing 'out' with 'err', then it should work... ;-)
Christian
--
Grüße aus Europas größtem Greetings from Europe's largest
Urban Sprawl (DUDOMA -- Duisburg Dortmund Metropolitan Axis ;-)
Christian Fritze <Th...@sprawl.de> http://www.sprawl.de/
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: logging something to catalina.out
Posted by Rhino <rh...@sympatico.ca>.
----- Original Message -----
From: "muhammed soyer" <mu...@ges.net.tr>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Monday, September 06, 2004 7:53 AM
Subject: logging something to catalina.out
Hello,
How can I write something to the logfile . "I should study log4j in a
few days "..
But if there is an easyway of writing a line to the log files of tomcat
..it should be helpfull to me now ..
------------------------------------------
If I'm not mistaken, all you need is:
System.out.println("I should study log4j in a few days...").
Rhino
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org