- Community Home
- >
- Networking
- >
- Software Defined Networking
- >
- Re: Logger Failure : Not able to log messages.
-
- 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, 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
02-26-2015 07:39 AM
02-26-2015 07:39 AM
Logger Failure : Not able to log messages.
Hi All,
I'm using logger to log files and i'm not able to see any messages in the log files,
Below are the 2 log files I am looking in,
/opt/sdn/virgo/serviceability/logs/log.log
/var/log/sdn/virgo/logs/log.log
Followed the steps provided in pdf for logger at page 100 "Debugging with logs".
Below is what I followed, line,
logger.info("Chethan Device {} added", device);
I am looking for at least my name,
Please let me know is there any other log files to look-in or am I missing some thing.
Thank you in advance,,
Regards,
Chethan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-29-2015 02:01 PM - edited 06-30-2015 07:10 AM
06-29-2015 02:01 PM - edited 06-30-2015 07:10 AM
Re: Logger Failure : Not able to log messages.
If you instantiate your logger as follows:
private org.slf4j.Logger logger = LoggerFactory.getLogger(getClass());
and log information in your event() method as follows:
logger.info("Chethan Device {} added");
you should see "Chethan Device {} added" in
/opt/sdn/virgo/serviceability/logs/log.log
whenever your app's event() method is triggered. You should be able to grep the results to filter the log and find lines with your name.
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP