SDN Controller Programming Guide

187
auditLogService = null;
if (delegate != null) {
delegate.setAuditLogService(null);
}
}
}
...
}
To try the new audit log feature follow the same steps from Posting Alerts on page 181 to add and
modify an OpenFlow switch so an audit log is generated.
Figure 61 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 Usuing Logging:
package com.hp.hm.impl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
...
public class SwitchManager implements SwitchService {
...
private Logger logger;
public SwitchManager() {
...