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.