@Timed
public List<LoggerDTO> getList() {
LoggerContext context = (LoggerContext) LoggerFactory.getILoggerFactory();
List<LoggerDTO> loggers = new ArrayList<>();
for (ch.qos.logback.classic.Logger logger : context.getLoggerList()) {
loggers.add(new LoggerDTO(logger));
}
return loggers;
}