Use of Debug-Logging within a Spark Plugin

Hi,

I have a problem with spark logging. There are only error.log and output.log available. I miss the debug.log file.

I wrote a plugin for spark, which should write logging messages into the debug.log, error.log of the spark Client using the “org.jivesoftware.spark.util.log.Log” class ( e.g. Log.debug(“Test message”); ).

Is there any way to turn on logging for debug messages?

Or should my Plugin do something else to be able to write log messages to spark log files?

Thanks for any hint.

regards

Abdeltif Nouqrat

To use the errors.log from my own plugin to write log messages you should add the following java system property debug.mode=true.

This can be done in the initialize method of the spark plugin by adding the following line:

System.setProperty(“debug.mode”, “true”);

That’s it

Regards

nouqrat