3

在 Websphere Liberty Profile 8.5 上部署 Enterprise Bundle Archive - EBA(包含多个蓝图服务)时,我在启动时收到以下错误消息。

[23/10/12 8:07:32:725 CEST] 0000001d SystemErr R SLF4J: The following loggers will not work because they were created
[23/10/12 8:07:32:725 CEST] 0000001d SystemErr R SLF4J: during the default configuration phase of the underlying logging system.
[23/10/12 8:07:32:725 CEST] 0000001d SystemErr R SLF4J: See also http://www.slf4j.org/codes.html#substituteLogger
[23/10/12 8:07:32:725 CEST] 0000001d SystemErr R SLF4J: some.package.containing.blueprint.service.MyService1
[23/10/12 8:07:32:725 CEST] 0000001d SystemErr R SLF4J: some.package.containing.blueprint.service.MyService2
[23/10/12 8:07:32:725 CEST] 0000001d SystemErr R SLF4J: some.package.containing.blueprint.service.MyService3

尽管 EBA 运行良好,但不会为 EBA 中包含的所有蓝图服务生成日志记录输出。(因为它们被无操作记录器取代)

EBA 在带有 OSGI Enterprise Pack 的 Websphere 8.0 上部署良好,并且日志记录工作正常。

就日志记录而言,EBA 包含 logback-core、logback-classic、slf4j-api 和 jcl-over-slf4j 包。

有没有办法从这些服务中获取日志,而不必求助于http://www.slf4j.org/codes.html#substituteLogger中列出的解决方案?我想维护可以在 Websphere 8.0 和 Websphere Liberty Profile 8.5 上部署的相同 EBA 文件

4

0 回答 0