Details
-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
13.1
-
None
-
Unknown
-
Description
This issue is about adding the ability to inject a Logger via the XWiki.ComponentDepencencyClass into a WikiComponent implemented as a document.
Currently, when declaring a dependency on org.slf4j.Logger in such a WikiComponent document, the following error is fired:
WikiComponentInvocationHandler - No component found for role [interface org.slf4j.Logger] with hint [default], declared as dependency for wiki component [xwiki:XWiki.MyWikiComponent]
For now, the WikiComponent documentation page mentions that the logging ScriptService can be used to log messages from a WikiComponent. If this issue gets fixed, this documentation should be updated to recommend using an injected logger instead.