Jars Included in the Standard Log4J Distribution
by, 02-24-2012 at 08:24 PM (848 Views)
Standard distribution includes these jars.
- commons-logging.jar: Following are included in the commons-logging.jar
o Java commons logging API
o For Log4J, thin wrapper Log implementations
o LogFactory implementations
- commons-logging-api.jar: Java Commons Logging API, built-in Log simpleLog implementations & LogFactory implementation are included.
- Commons-logging-adapters.jar: Adapters are included in it to 3rd part log implementations. Core Commons logging framework are not included in it. This library is just intended for the cases where common-logging-api.jar has been deployed in a share classpath. Logging is bind by the webapp to the external logging implementations which are not included in API jars.Within webapps, the common-logging.jar files deployment might create problematic situations as it would make the duplications of the core commons in classpath that may brings exceptions like ClassCastExceptions.