Hello,
I am developing an application for the HP VAN 2.6 controller, the application works well but I am unable to log anything at all on the 'Support Logs' section of the controller GUI and makes it difficult to debug. Following the Developer Guide I can see that using a logger works almost out-of-the-box via slf4j, but again, I am unable to make this work. Here's part of the code that I am using (taken from the bl folder of my app):
public class ArpMirrorManager implements ArpMirrorService, SequencedPacketListener {
/* Service dependencies */
@Reference(policy = ReferencePolicy.DYNAMIC,
cardinality = ReferenceCardinality.MANDATORY_UNARY)
private volatile ControllerService controller;
private static final Logger logger = LoggerFactory.getLogger(ArpMirrorManager.class);
Here are some places where I am trying to log information whenever an event ocurs:
@Activate
public void activate(){
controller.addPacketListener(this, PacketListenerRole.DIRECTOR, DIR_ALTITUDE, INTEREST);
logger.info("Module ARP Mirror activated");
}
@Deactivate
public void deactivate(){
controller.removePacketListener(this);
logger.info("Module ARP Mirror deactivated");
}
@Override
public void event(MessageContext context){
logger.info("ARP MIRROR: Packet IN event");
/* Some more code dealing with the PKT IN*/
....
}
Am I missing something? Where can I access the logged messages?
Thanks,
Sergio
#logging