I have come across the fact that you can either log a message or a throwable. Of course you can cope with this with two logging statements, first logging message, second throwable. As this isn't too obvious, I thought we might add a new method to interface org.apache.slide.util.logger.Logger to allow this

/**
* Log an object and an associated throwable thru the specified channel and with the specified level.
*
* @param data object to log
* @param throwable throwable to be logged
* @param channel channel name used for logging
* @param level level used for logging
*/
public void log(Object data, Throwable throwable, String channel, int level);



Though, this is a change of a main interface, so I am not quite sure if it is worth it. I can adapt implementations inside Slide, but what about compatibility to exeternal stuff?


Oliver



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to