开发者

Logging for multiple OSGi bundles working together

开发者 https://www.devze.com 2023-03-23 22:37 出处:网络
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 speci

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消