public void log(SessionLogEntry sessionLogEntry) {
Logger logger = getLoggerForCategory(sessionLogEntry.getNameSpace());
Level level = convertLevelIntToEnum(sessionLogEntry.getLevel());
String message = formatMessage(sessionLogEntry);
logger.log(level, message);
}
@Override
public boolean shouldLog(int level, String category) {
return getLoggerForCategory(category).isEnabled(convertLevelIntToEnum(level));