如何关闭 equinox 日志服务以支持 SLF4J 日志服务?
How can I turn off the equinox log service in favor of the SLF4J log service?
我正在使用 Equinox OSGi 容器。它有一个日志服务 'for free',但我从来没有看到它的任何输出,因为我没有 LogReader。我不想去发明一个 LogReader,我宁愿只使用 LogService 的 slf4j 实现,它将很好地插入我的 SLF4J 日志记录的其余部分。
不过,好像是春分'gets there first'。有什么方法可以告诉 Equinox 不要打开日志服务吗?是否有一些桥通过将消息写入 SLF4J 来实现 LogReader?
来自 OSGi enRoute 的 LoggerAdmin,http://enroute.osgi.org/services/osgi.enroute.logger.api.html, https://github.com/osgi/osgi.enroute.bundles/tree/master/osgi.enroute.logger.simple.provider,可以将 OSGi 日志条目分派到 slf4j。
我正在使用 Equinox OSGi 容器。它有一个日志服务 'for free',但我从来没有看到它的任何输出,因为我没有 LogReader。我不想去发明一个 LogReader,我宁愿只使用 LogService 的 slf4j 实现,它将很好地插入我的 SLF4J 日志记录的其余部分。
不过,好像是春分'gets there first'。有什么方法可以告诉 Equinox 不要打开日志服务吗?是否有一些桥通过将消息写入 SLF4J 来实现 LogReader?
来自 OSGi enRoute 的 LoggerAdmin,http://enroute.osgi.org/services/osgi.enroute.logger.api.html, https://github.com/osgi/osgi.enroute.bundles/tree/master/osgi.enroute.logger.simple.provider,可以将 OSGi 日志条目分派到 slf4j。