tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Francesco Pellegrini" <f.pellegr...@telematicaitalia.it>
Subject R: Tomcat 5 : DEBUG level
Date Thu, 15 Apr 2004 13:28:03 GMT
Hi,

getServletContext().log("message...");

When I was in Servlet class or in JSP pages  I can use it, but How can I log
message if I'm in Model or Controller layer ( my application is tie-tier),
for examples in MyDBConnection.class and I don't have a ServletContext?

Thanks,

Francesco.

-----Messaggio originale-----
Da: Shapira, Yoav [mailto:Yoav.Shapira@mpi.com]
Inviato: giovedi 15 aprile 2004 15.04
A: Tomcat Users List
Oggetto: RE: Tomcat 5 : DEBUG level



Hi,
getServletContext().log("message...");

RTFM.

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Francesco Pellegrini [mailto:f.pellegrini@telematicaitalia.it]
>Sent: Tuesday, April 13, 2004 12:02 PM
>To: Tomcat Users List
>Subject: Tomcat 5 : DEBUG level
>
>Hi all,
>
>I'm looking for an help to customize a LOG level for my server.
>I have some JSP and SERVLET that uses :
>
>System.out.println("message...");
>
>in server.xml I set :
>
><Logger className="org.apache.catalina.logger.FileLogger"
>        verbosity="4" directory="logs"  prefix="localhost_log."
>suffix=".txt"
> timestamp="true"/>
>
>
>Now, Instead of save the message on stdout.log I would like to store
all
>message on  localhost_log.YYYY-MM-DD.txt, beacause the stdout.log it's
>become too large.
>
>How can i solve this issue?
>
>Thanks
>
>Franz.
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org




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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message