This document is for the new (November 2013) 4.x release of the Sling Commons Log components. Refer to
Logging 3.x for older versions.
[TOC]
## Introduction
Logging in Sling is supported by the `org.apache.sling.commons.log` bundle, which is one of the first bundles installed
and started by the Sling Launcher. This bundle along with other bundles manages the Sling Logging and provides the
following features:
* Implements the OSGi Log Service Specification and registers the `LogService` and `LogReader` services
* Exports three commonly used logging APIs:
* [Simple Logging Facade for Java (SLF4J)](http://www.slf4j.org)
* [Apache Commons Logging](http://jakarta.apache.org/commons/logging)
* [log4j](http://logging.apache.org/log4j/index.html)
* [java.util.logging](http://download.oracle.com/javase/6/docs/api/java/util/logging/package-summary.html)
* Configures logging through Logback which is integrated with the OSGi environment
* Allows logging to be configured both via editing Logback xml or via OSGi Configurations
### v5.0.0 release
With Sling Log 5.0.0. release the webconsole support has been moved to a
different bundle named Sling Commons Log WebConsole (org.apache.sling.commons.log.webconsole:1.0.0)
Also with this release Logback 1.1.7 version is embedded and thus it requires
slf4j-api:1.7.15. See [SLING-6144][SLING-6144] for details
## WebConsole Plugin
The Web Console Plugin supports the following features:
* Display the list of loggers which have levels or appenders configured.
* List the file appenders with the location of current active log files.
* Show the contents of LogBack config files.
* Show the contents of various Logback config fragments.
* Show Logback Status logs.
* Inline edit the Logger setting
* Configure Logger with content assist for logger names
* Provides links to log file content allows log file content to be viewed from Web UI