Reference Guide

Table Of Contents
}
}
protected void unbindAuditLogService(AuditLogService service) {
if (auditLogService == service) {
auditLogService = null;
if (delegate != null) {
delegate.setAuditLogService(null);
}
}
}
...
}
To try the new audit log feature follow the same steps from Posting Alerts on page 212 to add an
OpenFlow switch so an audit log is generated.
Figure 63 Audit Logs View
Debugging with Logs
The HP VAN SDN Controller uses the Simple Logging Facade for Java (SLF4J) [44] logging
framework to generate support logs. No extra configuration is needed to enable an application to
create loggers. The following listing shows an example.
SwitchManager.java Using Logging:
package com.hp.hm.impl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
...
public class SwitchManager implements SwitchService {
217