Java Commons Logging Configuration
by, 02-24-2012 at 07:13 PM (1129 Views)
Java Commons Logging uses these base abstractions.
• Log- the basic logger
• LogFactory i.e. How a Log instances is created
A specific log implemenatation specification is quite useful. LogFactory implementation is specified by the advanced users. These discovery processes are used by the default LogFactory implementations.
• The org.apache.commons.logging.Log attribute shall be looked for. Java code can be used for setting these attributes. Properties files are commonly used for setting such attributes. All property file entries are attributes.
• Log4JLogger wrapper class shall be used when Log4J logging is present in class path system.
• Also, SimpleLog wrapper class can be used for the “default simple logging”.