I’'d like to know what is the right way to log errors/events from a plugin to the messenger log files. I looked at the asterisk-im files and I see that sometimes it logs using a java.util.logging.Logger instance but some other times it logs using static methods from org.jivesoftware.util.Log.
At least I see that the Logger info events end in the info.log file but it seems the Log static methods are needed to get to the error.log file.
I’'d also like to be able to log events to the debug.log file so I can enable them from the console when I want to debug something.
So, what’'s the difference between the two approaches, and which one should I use to log to each log file?