[slf4j-user] Apache Sling Commons Log - Integrating Logback with OSGi

Chetan Mehrotra chetan.mehrotra at gmail.com
Mon Jul 14 08:35:15 CEST 2014


Hi,

As part of Apache Sling project we have created a Sling Commons Log
module which integrates Logback with OSGi.

It might be interesting for Logback and/or slf4j users, see below for more info.

Chetan Mehrotra

Sling Commons Log
===============

doc - http://sling.apache.org/documentation/development/logging.html
release - http://sling.apache.org/site/downloads.cgi
source - http://svn.apache.org/repos/asf/sling/trunk/bundles/commons/log/

Features:
-------------

1. LogBack configuration can be provided via Logback config xml or via
    OSGi configuration enabling runtime modification of configuration.
2. Supports Appenders registered as OSGi Services
3. Supports Filters and TurboFilters registered as OSGi Services
4. Support providing Logback configuration as fragments through OSGi
    Service Registry
5. Support for referring to Appenders registered as OSGi services from
    within Logback config
6. Exposes Logback runtime state through the Felix WebConsole Plugin
7. Web UI based log configuration with type ahead support for Logger categories

Apart from Slf4j API bundle the Sling Commons Log bundle has no
dependency on other Sling bundles and can be used in any OSGi
framework.

Maven:
-----------

<dependency>
    <groupId>org.apache.sling</groupId>
    <artifactId>org.apache.sling.commons.log</artifactId>
    <version>4.0.0</version>
</dependency>

We hope that it might be useful to broader user community specially
while using Logback in OSGi environments

Chetan Mehrotra
PS: Apologies for cross posting. Sling Commons Log might be useful to
both user communities hence sending it to both


More information about the slf4j-user mailing list