Easylogging++ – single header only, extremely light-weight high performance logging library for C++ applications

Easylogging++ – single header only, extremely light-weight high performance logging library for C++ applications

Six Ways to Make Your Production Logs More Useful

Six Ways to Make Your Production Logs More Useful

  1. Log structured data in a readable format
  2. Add a dash of color
  3. Logs let your app communicate with you and your team
  4. Seriously though, don’t put exception stack traces in your logs!
  5. Log URLs for easy access to more context
  6. Add emotional context to your logs

Most of these are somewhat expected, but I emotional context in logs was definitely new to me. I wonder why I’ve never even thought of this.

Online HAR viewer

HTTP Archive Viewer – a handy tool for troubleshooting web pages.  Here is how to use it:

  1. Open Google Chrome browser (new tab).
  2. Press F12 to open Developer Tools.
  3. Switch to Network tab.
  4. Load any page in the tab.
  5. Right-click anywhere over network requests to get a menu.
  6. Select ‘Save as HAR with content’.
  7. Choose the location for the HAR file.

Now you can drag-n-drop this file into the HTTP Archive Viewer and study how the page loaded, which requests were made, how much time was spent and how it was spent.  This is particularly useful for the following scenarios:

  1. You are about to make some changes to your site, and you want to compare ‘before’ and ‘after’.
  2. You are troubleshooting a session of a non-technical user, who can’t provide you access to his desktop environment.