Apache Commons Logging (previously known as Jakarta Commons Logging or JCL) is a
Java
Java (; id, Jawa, ; jv, ꦗꦮ; su, ) is one of the Greater Sunda Islands in Indonesia. It is bordered by the Indian Ocean to the south and the Java Sea to the north. With a population of 151.6 million people, Java is the world's mo ...
-based
logging utility and a programming model for logging and for other toolkits. It provides
APIs, log implementations, and
wrapper implementations over some other tools.
Log level
The following table defines the log levels and messages in Apache Commons Logging, in decreasing order of severity. The left column lists the log level designation in and the right column provides a brief description of each log level.
Configuration
Two basic abstractions, Log and LogFactory, are used in Apache Commons Logging.
Example
Sample code may look like as follows:
package com.cascadetg.ch09;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.commons.logging.impl.Jdk14Logger;
public class LogGenerator
See also
*
log4j
*
Chainsaw (log file viewer)
Chainsaw is a java-based GUI software tool to view and analyze computer log files – specifically logs generated by the Log4j logging system. Both Log4j and Chainsaw are Open source projects under Apache Software Foundation
The Apache Software ...
*
References
External links
*
{{Apache Software Foundation
Commons Logging
Free software programmed in Java (programming language)
Log file formats
Software using the Apache license