Shailander,

Few clarifications on this regard:
If you using MVC approach, and all you class components going through
same servlet or common point.

Provide a method in this controller servlet  which will be called in
init method and will set the out.write target to different filename.
Then onwards, any system.out.println will go to new destination and will
not mix up with catlina.out file.

But yup, for next project onwards, avoid using such blind printlns.
Either use log4j or write your own logger with a flag as status. And
write logg always with status (development, deployment, testing etc) and
set a field in web.xml or some properties file to configure state of
application you running. Implement this logic to print the log content
only for those logging code lines which have appropriate status set in.


It will not write any

- regards

Raj
(+91-11-31261821)

-----Original Message-----
From: Sean Radford [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 05, 2004 2:13 PM
To: Struts Users Mailing List
Subject: Re: System.out.println

Shailender Jain wrote:

>Hi,
>
>During the development of the project we used System.out.println to do
>the debugging.
>
>Now i want to put the application in production. But i want that some
>how this command should
>not populate the log files. (catalina.out).
>
>I am using jakarta-tomcat-5.0.16.
>Any pointer regarding this will be very helpfull.
>
>Shailender Jain
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> 
>
go through the source and replace them with commons.logging calls.

(And slap any developer that ever uses System.out for logging in the
future)

--
Dr. Sean Radford, MBBS, MSc
[EMAIL PROTECTED]
http://bladesys.demon.co.uk/
http://www.aegeus-technology.com/


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





Confidentiality Notice

The information contained in this electronic message and any attachments to this 
message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged 
information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL 
PROTECTED] immediately
and destroy all copies of this message and any attachments.

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

Reply via email to