Any way to control Smack logging?

I’m writing a simple app that works with a server that produces some custom extensions I don’t care much about. Nevertheless, I get the following written out to stderr fairly frequently:

Jun 25, 2014 8:52:24 PM org.jivesoftware.smack.util.PacketParserUtils parsePresence

WARNING: Failed to parse extension packet in Presence packet.

Is there any way, provided via the library itself, to capture these logs internally or to direct them to a log file some place?

I realize I can always pipe stderr to /dev/null, but many libraries provide a means for the consuming app to register a callback or otherwise configure diagnostics output rather than assuming it’s okay to write to stderr.

Thanks!

Which Smack version do you use?

I’m using 4.0.0-rc2 at the moment.

You can control Smack logging by the means of java.util.logging, which Smack uses.