在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文件