开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜