Any way to make a custom logger?

Hello,

I was wondering if there was any way to provide my own implementation of either org.jivesoftware.util.log.Logger, or LogTarget, or some other class so that whenever a message is logged in Openfire I can process the message how I please (in my case, I need to format it a certain way and write it to the Windows event log)?

Thanks for any tips,

Dave

You should consider using the Simple Logging Facade library: http://www.slf4j.org/manual.html

Yup, love sl4j. However, since Openfire does not seem to use it, there is no way for me to use it to “intercept” the logging that Openfire currently does. What I am looking for is a way to tell Openfire, “hey, when you want log something, use MY class instead of your default implementation”.