I'll try to use log4j.

Thanks for your kind attention

Francesco.



-----Messaggio originale-----
Da: Shapira, Yoav [mailto:[EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

Reply via email to