Search in sources :

Example 6 with AuditLevel

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
}
Also used : AuditLevel(org.xipki.audit.AuditLevel) CharArrayWriter(java.io.CharArrayWriter)

Aggregations

AuditLevel (org.xipki.audit.AuditLevel)6 EOFException (java.io.EOFException)5 Date (java.util.Date)5 AuditStatus (org.xipki.audit.AuditStatus)5 AuditEvent (org.xipki.audit.AuditEvent)4 AuditService (org.xipki.audit.AuditService)4 IOException (java.io.IOException)3 X509Certificate (java.security.cert.X509Certificate)3 OperationException (org.xipki.ca.api.OperationException)3 ErrorCode (org.xipki.ca.api.OperationException.ErrorCode)3 HttpMethod (io.netty.handler.codec.http.HttpMethod)2 HttpVersion (io.netty.handler.codec.http.HttpVersion)2 ServletException (javax.servlet.ServletException)2 PKIMessage (org.bouncycastle.asn1.cmp.PKIMessage)2 ContentInfo (org.bouncycastle.asn1.cms.ContentInfo)2 CMSSignedData (org.bouncycastle.cms.CMSSignedData)2 AuditServiceRegister (org.xipki.audit.AuditServiceRegister)2 ResponderManager (org.xipki.ca.server.api.ResponderManager)2 Scep (org.xipki.ca.server.api.Scep)2 X509CaCmpResponder (org.xipki.ca.server.api.X509CaCmpResponder)2