Performance. Errors. Logs. One Tool. Everything Developers Need to Support Their Apps

Stackify Blog

Subscribe to Stackify Blog: eMailAlertsEmail Alerts
Get Stackify Blog via: homepageHomepage mobileMobile rssRSS facebookFacebook twitterTwitter linkedinLinkedIn

Blog Feed Post

The best log viewer in the universe

It is hard to imagine troubleshooting applications problems without debug logging. When all else fails and you can’t figure out what your code is doing, our answer is to always add more logging. But unfortunately, log files can a spaghetti style mess thanks to lots of web requests happening at a single time. Prefix can organize your logging by web request while at the same time showing you SQL queries, HTTP calls, errors, and a whole lot of other things.

Prefix is free for .NET and Java developers! Learn more about Prefix

Organizing your spaghetti style logs

Using our own application as example, one of our dashboard type pages does a lot of AJAX calls to load different parts of the page. With Prefix, we can see all of the 21 web requests.

Snippet from Prefix for just part of the 21 requests

part-of-one-pagehttp://1piygz303e2p3ze2nt2kfhla.wpengine.netdna-cdn.com/wp-content/uploa... 300w, http://1piygz303e2p3ze2nt2kfhla.wpengine.netdna-cdn.com/wp-content/uploa... 768w, http://1piygz303e2p3ze2nt2kfhla.wpengine.netdna-cdn.com/wp-content/uploa... 1110w" sizes="(max-width: 498px) 100vw, 498px" />

My log file contains dozens of log messages from loading 1 web page. It is hard to even know which log message was from which request. Luckily, Prefix can show me the log messages for the single web request that I actually care about.

I wanted to see my logging so I could verify what elasticsearch query was being used. But Prefix also shows me that this web request does a couple database queries as well. So not only can I see my logging, but I can see how long it took to run my elasticsearch query, and those database queries. Pretty amazing for no code changes!

log-viewhttp://1piygz303e2p3ze2nt2kfhla.wpengine.netdna-cdn.com/wp-content/uploa... 300w, http://1piygz303e2p3ze2nt2kfhla.wpengine.netdna-cdn.com/wp-content/uploa... 768w, http://1piygz303e2p3ze2nt2kfhla.wpengine.netdna-cdn.com/wp-content/uploa... 1374w" sizes="(max-width: 860px) 100vw, 860px" />

Configuring Prefix to view your log messages

For Java, Prefix will automatically show you any logs being logged to log4j or logback.

For .NET, Prefix will automatically show you Debug.WriteLine and Trace.WriteLine statements. log4net, NLog, & Serilog are also supported but require configuring the proper Stackify log appender so they can be picked up. BTW, We are hoping to change this in the future so you don’t have to add the log appender.

Prefix is much more than a log viewer

Viewing your logs with Prefix is awesome. But what really makes it a big deal is being able to see it in context with the SQL queries, HTTP calls, queuing, caching, and other operations that your code is doing. Odds are, many of the other details it automatically shows will save you time from adding more logging!

Once you have used Prefix, it is hard to imagine troubleshooting application problems without Prefix.

Read the original blog entry...

More Stories By Stackify Blog

Stackify offers the only developers-friendly solution that fully integrates error and log management with application performance monitoring and management. Allowing you to easily isolate issues, identify what needs to be fixed quicker and focus your efforts – Support less, Code more. Stackify provides software developers, operations and support managers with an innovative cloud based solution that gives them DevOps insight and allows them to monitor, detect and resolve application issues before they affect the business to ensure a better end user experience. Start your free trial now stackify.com