View RSS Feed

Log4j

Java Commons Logging Configuration

Rate this Entry
by , 02-24-2012 at 08:13 PM (1336 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”.

Submit "Java Commons Logging Configuration" to Facebook Submit "Java Commons Logging Configuration" to Digg Submit "Java Commons Logging Configuration" to del.icio.us Submit "Java Commons Logging Configuration" to StumbleUpon Submit "Java Commons Logging Configuration" to Google

Comments