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;
}
Aggregations