Apache Commons Logging
   HOME

TheInfoList



OR:

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 mos ...
-based logging utility and a programming model for logging and for other toolkits. It provides
API An application programming interface (API) is a way for two or more computer programs to communicate with each other. It is a type of software interface, offering a service to other pieces of software. A document or standard that describes how ...
s, 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 Apache Log4j is a Java-based logging utility originally written by Ceki Gülcü. It is part of the Apache Logging Services, a project of the Apache Software Foundation. Log4j is one of several Java logging frameworks. Gülcü has since c ...
*
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 software, Open source projects under Apache Software Foundation. ...
*


References


External links

* {{Apache Software Foundation Commons Logging Free software programmed in Java (programming language) Log file formats Software using the Apache license