public List<LoggerTO> getLoggers() {
LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();
List<LoggerTO> result = new ArrayList<LoggerTO>(lc.getLoggerList().size());
for (Logger logger : lc.getLoggerList()) {
if (logger.getLevel() != null) {
LoggerTO loggerTO = new LoggerTO();
loggerTO.setName(logger.getName());
loggerTO.setLevel(SyncopeLoggerLevel.fromLevel(logger.getLevel()));
result.add(loggerTO);
}
}
return result;