What you want to use is the Logger instance that is defined for
this context via your server.xml

     From a servlet,
     getServletContext().log("theMessage");

     Thanks go to Yoav Shapira
     Millennium ChemInformatics

The catalina_log file is the Logger element under the "Catalina"
element.

The localhost_log is the Logger element under "localhost" Host
element.

The localhost_examples_log is the Logger element under the
"examples" Context element.


All of these rotate daily (hence the date in the name).  These
can be inherited.  See also
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/logger.html


--- James Darwin <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I've got a website running on Tomcat 4.1.18. It logs all
> System.out.println to catalina.out. However, this file is
> getting too
> long, making it difficult to view the file. So, I would like
> to
> generate a separate log file for each day. Is this possible to
> configure under Tomcat?
> 
> Also, under tomcat-4.1.18/logs I have a whole heap of other
> files, e.g:
> 
> catalina_log.2003-07-07.txt
> localhost_log.2003-04-07.txt
> localhost_examples_log.2003-02-28.txt
> 
> What are these log files used for? I've searched around Tomcat
> website,
> but there doesn't seem to be any information on the default
> logging
> behaviour of Tomcat. If anyone knows of any good documents or
> websites
> which explain Tomcat logging it would be much appreciated if
> you pass
> it on.
> 
> Thanks.
> 
> http://mobile.yahoo.com.au - Yahoo! Mobile
> - Check & compose your email via SMS on your Telstra or
> Vodafone mobile.
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


=====

Norris Shelton
Software Engineer
Sun Certified Java 1.1 Programmer
Appriss, Inc.
ICQ# 26487421
AIM NorrisEShelton
YIM norrisshelton


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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

Reply via email to