SLING-3049 - Make Logback Stacktrace Packaging data support OSGi aware

Ensure that bundle info is only provided if there is a single owner of
any package. If same package is provided by multiple bundles then no bundle
info would be provided
4 files changed
tree: f89460cea3e3461a99e4dd530d8a2f85c3776df2
  1. .gitignore
  2. LICENSE
  3. README.md
  4. pom.xml
  5. src/
README.md

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.