Apache Sling Commons Log

Clone this repo:
  1. 454190a SLING-12234 Commons Log builds fail on Windows by Oliver Lietz · 6 weeks ago master
  2. 60eae6a [maven-release-plugin] prepare for next development iteration by Robert Munteanu · 3 months ago
  3. a5eba96 [maven-release-plugin] prepare release org.apache.sling.commons.log-5.5.0 by Robert Munteanu · 3 months ago org.apache.sling.commons.log-5.5.0
  4. 592d852 SLING-12240 - Upgrade to parent pom 52 and Java 11 by Robert Munteanu · 3 months ago
  5. 96af4bb SLING-12235 - Upgrade logback version to 1.2.13 (#13) by dependabot[bot] · 3 months ago

Apache Sling

Build Status Test Status Coverage Sonarcloud Status JavaDoc License

Apache Sling Commons Log

This module is part of the Apache Sling project.

The “log” project packages the Logback library to manage logging in OSGi environment. It provide some useful extension to the default Logback feature set to enable better integration with OSGi. The SLF4j API bundle must be installed along with this bundle to provide full SLF4J logging support.

The Logging bundle should be installed as one of the first modules in the OSGi framework and - provided the framework supports start levels - be set to start at start level 1. This ensures the Logging bundle is loaded as early as possible thus providing services to the framework and preparing logging.

For more details refer to the Logging Documentation

Getting Started

You can compile and package the jar using the following command:

mvn package -Pide,coverage

It would build the module and also produce a test coverage report also prepare bundle jar which is suitable to be used to run integration test from within IDE.