public void log(Level level, String msg, String category, Throwable e) {
if (isLoggable(level, category)) {
for (int i = 0; i < handlers.size(); i++) {
LogHandler handler = (LogHandler) handlers.get(i);
if (allows(handler.getLevel(), level)) {
handler.publish(msg, level, category, e);
}
}
}
}