コード例 #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);
 }