Ashish Kulkarni wrote:
Hi
Does anyone have an exmple of using log4j for logging struts messages,
I have an web application where i use log4j for logging, i have a
mapslog4j.xml file in WEB-INF folder and load this log file using
DOMConfigurator in a servlet.
This servlet is loaded before struts servlet,
but some how this is not
working, i do not get any logs from struts in my log file,
Firstly, why not name the config file log4j.xml and put it in
WEB-INF/classes, so Log4J will load it automatically and you don't have
to mess with DOConfigurator?
Secondly, what is the content of mapslog4j.xml? What did you set the
root log level to? Did you configure specific log levels for Struts?
L.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]