It is hard for developers 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 in one amazing log viewer.
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
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!
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 for developers
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.
Want even more power to write better code faster and catch any issues before they get to production?
- Stackify Retrace Releases Support for PHP - October 1, 2018
- Serilog Tutorial for .NET Logging: 16 Best Practices and Tips - August 15, 2018
- Retrace Log Management: Logs, Errors and Code Level Performance - April 25, 2018
- 5 Awesome Retrace Logging & Error Tracking Features - March 14, 2018
- Developer Things #8: How to Develop More Secure Software with Steve Feldman - February 8, 2018