public void enableAudit(final AuditLoggerName auditLoggerName) { LoggerTO loggerTO = new LoggerTO(); loggerTO.setKey(auditLoggerName.toLoggerName()); loggerTO.setLevel(LoggerLevel.DEBUG); getService(LoggerService.class).update(LoggerType.AUDIT, loggerTO); }
public void setLogLevel(final String key, final LoggerLevel level) { LoggerTO loggerTO = new LoggerTO(); loggerTO.setKey(key); loggerTO.setLevel(level); getService(LoggerService.class).update(LoggerType.LOG, loggerTO); }