- Community Home
- >
- Networking
- >
- Software Defined Networking
- >
- How to use Support Logs
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-29-2016 03:07 PM
06-29-2016 03:07 PM
How to use Support Logs
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
- Tags:
- logging
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-05-2016 02:26 PM
07-05-2016 02:26 PM
Re: How to use Support Logs
Hi Sergio,
Do your log messages show up in the raw log file? It is located at /var/log/sdn/virgo/logs/log.log.
If your class is attempting to be loaded via dynamic OSGI referencing, be sure to include something like the following before the class definition:
@Component(immediate = true, metatype = true) @Service
Shaun
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP