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:53:19 GMT
I'll try to use log4j.

Thanks for your kind attention

Francesco.



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



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?

You original question asked only about servlets and JSPs.  You can pass
the ServletContext around if you'd like, or for a cleaner solution pick
up a logging toolkit like log4j.

Yoav Shapira



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