- Community Home
- >
- Networking
- >
- Software Defined Networking
- >
- Re: Logger Failure : Not able to log messages.
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
- 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
- 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.