示例#1
0
 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);
 }
示例#2
0
 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);
 }