Samiksha Jaiswal (Editor)

Apache Commons Logging

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit
Written in
  
Java

Type
  
Logging Tool

Operating system
  
Cross-platform

License
  
Apache License 2.0

Apache Commons Logging

Developer(s)
  
Apache Software Foundation

Stable release
  
1.2 / July 2015 (2015-07)

Apache Commons Logging (previously known as Jakarta Commons Logging, JCL) is a Java-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.

Contents

JCL log level

The following table defines the log levels and messages in JCL, 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 JCL.

Example

Sample code may look like as follows:

References

Apache Commons Logging Wikipedia