SLING-4788 - SlingConfigurationPrinter should use mode aware and only stream the full logs in the zip version and avoid duplicate information

Added support for restricting number of old rolled over log files to be included in the configuration status dump. By default max 3 files would be included. This can be configured via 'org.apache.sling.commons.log.maxOldFileCountInDump' config prop

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1692482 13f79535-47bb-0310-9956-ffa450edef68
6 files changed
tree: a6c66716588f9e5231e2b1a7ce8f0da282d2c573
  1. src/
  2. pom.xml
  3. README.md
README.md

Apache Sling Commons Log

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.