we were using log4j earlier in web application.
- Posted by: Raghu RAghu
- Posted on: September 29 2004 05:17 EDT
As i started working on struts,from API i find this package.
can any one help me with sample example of using commons.logging package.
Here is an example on how to obtain a logger instance:
private static final Log LOG = LogFactory.getLog(MyClass.class);
Then I use in the same way as a LOG4J logger instance.
You can read about how commons-logging try to find a logger instance here: http://jakarta.apache.org/commons/logging/guide.html#Configuration
Hope it helps