<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to use Support Logs in Software Defined Networking</title>
    <link>https://community.hpe.com/t5/software-defined-networking/how-to-use-support-logs/m-p/6873997#M948</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;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&amp;nbsp;&lt;STRONG&gt;bl&amp;nbsp;&lt;/STRONG&gt;folder of my app):&lt;/P&gt;&lt;PRE&gt;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);&lt;/PRE&gt;&lt;P&gt;Here are some places where I am trying to log information whenever an event ocurs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;	@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*/
                ....
         }&lt;/PRE&gt;&lt;P&gt;Am I missing something? Where can I access the logged messages?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sergio&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jun 2016 22:07:09 GMT</pubDate>
    <dc:creator>checho</dc:creator>
    <dc:date>2016-06-29T22:07:09Z</dc:date>
    <item>
      <title>How to use Support Logs</title>
      <link>https://community.hpe.com/t5/software-defined-networking/how-to-use-support-logs/m-p/6873997#M948</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;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&amp;nbsp;&lt;STRONG&gt;bl&amp;nbsp;&lt;/STRONG&gt;folder of my app):&lt;/P&gt;&lt;PRE&gt;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);&lt;/PRE&gt;&lt;P&gt;Here are some places where I am trying to log information whenever an event ocurs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;	@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*/
                ....
         }&lt;/PRE&gt;&lt;P&gt;Am I missing something? Where can I access the logged messages?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sergio&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 22:07:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/how-to-use-support-logs/m-p/6873997#M948</guid>
      <dc:creator>checho</dc:creator>
      <dc:date>2016-06-29T22:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Support Logs</title>
      <link>https://community.hpe.com/t5/software-defined-networking/how-to-use-support-logs/m-p/6875531#M950</link>
      <description>&lt;P&gt;Hi Sergio,&lt;/P&gt;&lt;P&gt;Do your log messages show up in the raw log file? It is located at /var/log/sdn/virgo/logs/log.log.&lt;/P&gt;&lt;P&gt;If your class is attempting to be loaded via dynamic OSGI referencing, be sure to include something like the following before the class definition:&lt;/P&gt;&lt;PRE&gt;@Component(immediate = true, metatype = true)
@Service&lt;/PRE&gt;&lt;P&gt;Shaun&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jul 2016 21:26:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/how-to-use-support-logs/m-p/6875531#M950</guid>
      <dc:creator>ShaunWackerly</dc:creator>
      <dc:date>2016-07-05T21:26:56Z</dc:date>
    </item>
  </channel>
</rss>

