Logging for multiple OSGi bundles working together
Working on an application which involves multiple OSGi bundles. SLF4j is the underlying logging framework. Do I need to configure the logger.properties
separately for each bundle or is there any specific logging approach used for OSGi bundles?
In f开发者_运维问答ormer case, what will happen to the sequence of logging for each bundle into the file?
You could use Apache Sling's org.apache.sling.commons.log bundle, which provides an SLF4j implementation that plays well with OSGi. See http://sling.apache.org/site/logging.html , downloads from http://sling.apache.org/site/downloads.cgi or from Maven Central.
精彩评论