Could somemone please tell me where to find info on using log4j inside of jsps, or if that is even possible.
Any info is greatly appreciated
Thanks, Steve
-
log4j with jsp (3 messages)
- Posted by: Steve Chernyak
- Posted on: February 16 2001 09:30 EST
Threaded Messages (3)
- log4j with jsp by Gordon Reynolds on February 16 2001 14:00 EST
- log4j with jsp by Bhargav Srirangam on May 23 2001 15:25 EDT
- log4j with jsp by Mohd Amin on August 16 2004 06:31 EDT
-
log4j with jsp[ Go to top ]
- Posted by: Gordon Reynolds
- Posted on: February 16 2001 14:00 EST
- in response to Steve Chernyak
Steve, I believe you can. I can't say I've ever used log4j, but I have used my own simple logging software and it worked fine. This only becomes an issue in EJB applications. You can read about that on this website at:
https://theserverside.com/discussion/thread.jsp?thread_id=2194
You might pick up some useful tips. I'll add one note: in one of my own applications, I found it more useful to log to an RDBMS than to a text file.
Gordon. -
log4j with jsp[ Go to top ]
- Posted by: Bhargav Srirangam
- Posted on: May 23 2001 15:25 EDT
- in response to Steve Chernyak
Hi Steve,
i just started implementing log4j for some of the servlets for a application running in weblogic server 5.1, i see the API very useful but still need to explore all the possibilities and avenues the API provides.Currently i am logging to files using FileAppenders and will be working on SocketAppenders pretty soon :),as far as i think , it is definetly possible to include the log4j logging code in JSP.
Cheers
Sree
-
log4j with jsp[ Go to top ]
- Posted by: Mohd Amin
- Posted on: August 16 2004 06:31 EDT
- in response to Steve Chernyak
If you have commons logging, then this code can be used,
<code>
Log log = LogFactory.getLog(this.getClass());
</code>