dcsimg
Log4J plus Struts, really fast question
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Monday, February 17, 2003 06:27 AM

Hi, I'm trying to add logging to my already built struts application, however, I haven't been able to find any useful sample source code nor a tutorial, maybe i'm not looking in the rigth places but I would highly appreciate if you guys could give me a hand.



Regards.



Ugo Posada

Re: Log4J plus Struts, really fast question

Posted By:   Michael_Canzoneri  
Posted On:   Thursday, February 20, 2003 11:36 AM

I always recommend making your log4j initialization a servlet that gets called upon the starting of the app.

Plus if you are using struts and if you have base classes for each the model-view-controller classes, which I recommend, you can place your logging into the base class and go from there.

If you need actual code let me know and I can post it for you (*I should make that a FAQ*).

Hope this helps.

Plus Ceki Gulcu wrote a great manual for log4j. On the log4j web site there is a link to it. It's around $35, in pdf format, and it is well worth it.
About | Sitemap | Contact