Search in sources :

Example 1 with Auditor

use of org.apache.knox.gateway.audit.api.Auditor in project knox by apache.

the class Log4jAuditService method getAuditor.

@Override
public synchronized Auditor getAuditor(String auditorName, String componentName, String serviceName) {
    String key = auditorName + componentName + serviceName;
    Auditor auditor = auditors.get(key);
    if (auditor == null) {
        auditor = new Log4jAuditor(auditorName, componentName, serviceName);
        auditors.put(key, auditor);
    }
    return auditor;
}
Also used : Auditor(org.apache.knox.gateway.audit.api.Auditor)

Aggregations

Auditor (org.apache.knox.gateway.audit.api.Auditor)1