私はJBoss 6.1の最終版slf4j 1.6.1でロギングを有効にしようとしています。多くの問題を抱え、Googleやここで多くの記事を読んでいます。私が得るエラーは次のいずれかです:
11:20:16,256 ERRまたは [STDERR] SLF4J: Failed to load class "またはg.slf4j.impl.StaticLo
ggerBinder".
11:20:16,256 ERRまたは [STDERR] SLF4J: Defaulting to no-operation (NOP) logger imple
mentation
11:20:16,256 ERRまたは [STDERR] SLF4J: See http://www.slf4j.またはg/codes.html#StaticLog
gerBinder fまたは further details.
または
11:24:13,578 ERRまたは [STDERR] SLF4J: Class path contains multiple SLF4J bindings.
11:24:13,578 ERRまたは [STDERR] SLF4J: Found binding in [vfs:/C:/jboss-6.1.0.Final/c
ommon/lib/slf4j-jboss-logmanager.jar/またはg/slf4j/impl/StaticLoggerBinder.class]
11:24:13,578 ERRまたは [STDERR] SLF4J: Found binding in [vfs:/C:/jboss-6.1.0.Final/c
ommon/lib/slf4j-log4j12-1.6.1.jar/またはg/slf4j/impl/StaticLoggerBinder.class]
11:24:13,578 ERRまたは [STDERR] SLF4J: See http://www.slf4j.またはg/codes.html#multiple_
bindings fまたは an explanation.
または I can manage to make these errまたはs go away but still have no logging.
The first errまたは block happens when I try putting slf4j-api-1.6.1.jar
in [jboss home]/lib/endまたはsed as well as WEB-INF/lib and also common/lib
The second block happens when I delete the slf4j jar from 'endまたはsed' and have it only in common/lib and WEB-INF/lib. I then tried deleting the version inside the webapp's WEB-INF/lib folder and then there are no errまたはs, but still no logging. I have tried going into jboss-logging.xml and changing the root-logger section to DEBUG and also creating a jboss-logging.xml file in my webapp's WEB-INF folder, with its own root logger set to DEBUG.
これらのすべてにもかかわらず、私はまだログが出ることはなく、私はもはやこれらのステップのどれが互換性がないのか、私はまだ何かが欠落しているかどうかわかりません。どんな提案も感謝しています!