SLF4J Logging Configuration with My Extension

I could use some help figuring out why I can not see the logs from my extension.

I have made a simple implementation of the EventListener. I have had it working, but then I made a change and so I began adding log messages through the onEvent method.

I based the logging according to Logging (XWiki.org).

LOGGER is my private variable in my component, which is and injected variable of type org.slf4j.Logger.

I am expecting to see my logs in the /var/log/xwiki/{date}.jetty.log of my debian install of xwiki with jetty.
I altered the logback.xml file to debug level logging for org.xwiki.contrib, which is the groupId i am using for my extension.

Can I expect to see the logs from my extension at this location? If so, why might I not be seeing them there? If not, where can I find them or how might I change my configuration so that I can see the logs?

Thank you in advance for the help. Those that answer on this forum are fantastic.

What’s in logback.xml have nothing to do with your extension group id, it’s related to the package of your class with which the Logger is associated.

1 Like

Thank you. Its the simple things that get me.