* @param data The object to log.
* @param channel The channel name used for logging.
* @param level The level used for logging.
*/
public void log(Object data, String channel, int level) {
Category cat = getCategory(channel);
if (data instanceof Throwable)
cat.log(toLevel(level), data, (Throwable)data);
else
cat.log(toLevel(level), data);
}