use of org.xipki.audit.AuditLevel in project xipki by xipki.
the class Slf4jAuditServiceImpl method logEvent0.
@Override
protected void logEvent0(PciAuditEvent event) {
CharArrayWriter msg = event.toCharArrayWriter("");
AuditLevel al = event.getLevel();
switch(al) {
case DEBUG:
if (LOG.isDebugEnabled()) {
LOG.debug("{} | {}", al.getAlignedText(), msg);
}
break;
default:
if (LOG.isInfoEnabled()) {
LOG.info("{} | {}", al.getAlignedText(), msg);
}
break;
}
// end switch
}
Aggregations