50 votes

Diplo Trace Log Viewer

Diplo Trace Log Viewer is a Developer tree section (in Umbraco 7) or a dashboard plugin (in Umbraco 6) that allows you to easily select and view the contents of the trace logs that Umbraco now generates. The control also allows you to search, order and filter log events (e.g. you may only wish to view Errors or Warnings) all from within Umbraco.

Important: For Umbraco 7 please install version 2.x. For Umbraco 6 please install version 1.3.1

V7 also available from NuGet at https://www.nuget.org/packages/DiploTraceLogViewer/

PM> Install-Package DiploTraceLogViewer

Trace logs are text files which appear in /App_Data/Logs/ folder and replace the log entries in the umbracoLog table in the database. These trace files contain information that Umbraco and other packages generate, such as errors, warning and information. For instance, if you experience an error or problem within Umbraco then the trace logs are the first place to look for further information.

After installing the package you should see a new dashboard plugin called 'Trace Log Viewer' in the Developer section of your website in the Umbraco backend.

For more information about logging in Umbraco see the Umbraco.Core.Logging.LogHelper class. For more info on this package check my blog post at https://www.diplo.co.uk/blog/web-development/diplo-trace-log-viewer-for-umbraco/

Change Log

2.4.2 - This minor release adds FATAL status filter (thanks Jeroen Janssen), tidies up JavaScript files and fixes some broken links in the detail page search. Also adds Bing as a search provider.

2.4.1 - By popular demand added back machine name parsing, so now shows machine name next to date when the machine name differs from host machine. Also now adds (C) suffix if a file is a Courier log. Changed tree syncing.

2.4.0 - Displays all log files in the /logs/ directory. Ability to select a log by either date or filename. New sortable and searchable table that shows all log files. 

Removed legacy support for older log format so now only supports Umbraco 7.4 and up. Use the 7.3 versions if you need to support older Umbraco 7 installations.

2.3.2 - Improvements to detail dialogue

2.3.1 - Fixes a CSS issue that could affect dropdown menus in wider Umbraco

2.3.0 - Improved UI and UX, with new, faster log table viewer and improved filters. Now has ability to "auto poll" the current log file so you can see changes (almost) in real time. Supports the log4net "preserveLogFileNameExtension" - thanks lucasch! Lots of internal rewrites and refactoring to make even spiffier!

2.2.7 - Option to persist filters between log reloads, so you can view multiple log files with your prefered filters always set. Plus even more UI tweaks!

2.2.6 - Lots of little UI tweaks, including Previous and Next buttons for detail dialogue

Now reads the log4Net config in case you've changed path to where logs are generated 

If you view logs from a different machine then the machine name is shown as well as date (useful for load balanced sites)

2.2.5 - improved efficiency when reading and parsing log files - with big thanks to Shannon

2.2.4 - tweaked parsing regular expression to be catch corner cases (please report any issues) and added unit tests to the source (available on Github)

2.2.3 - work around for an Angular template caching issue in Umbraco 7.3.0 that was causing 404s on ng-table header (thanks Jeavon for help)

2.2.2 - features improved security (thanks to Sebastiaan Janssen) and his pen testing!

New in 2.2.1 - fixed a bug where some log entries where incorrectly parsed.

New in 2.2 - improved UI (with a bigger detail view on wide screens), forward compatability with the new log format in Umbraco 7.3.0, lots of little tweeks.

New in v2.1 - improved parsing and performance enhancements (thanks to Sebastiaan Janssen). Ability to search log messages on Google, Our Umbraco and more! Also available as a NuGet package at https://www.nuget.org/packages/DiploTraceLogViewer/ (thanks to Jeavon Leopold).

New in v2.0 - completely rewritten from scratch for Umbraco 7 using AngularJS and WebApi controllers. Now faster, quicker and more beautiful! :)

New in v1.2/3 - fixed bug where long error messages where being truncated at first newline. Thanks kristian schneider for spotting this. Added better persistence. Made scheme agnostic so will work under HTTPS.

New in v1.1 - persistence. The log viewer now remembers the state of sort-columns, pagination and search terms between viewing log files.

Archived files

Source code

 Download package
version 2.4.2

NuGet install instructions for Umbraco 7.1.0-7.15.0

Install-Package DiploTraceLogViewer

Package owner

Dan Diplo

Dan Diplo

Dan has 6205 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Works on Umbraco Cloud
Version 8.18.x (untested)

You must login before you can report on package compatibility.

Previously reported to work on versions: 7.15.x, 7.13.x, 7.12.x, 7.11.x, 7.10.x, 7.9.x, 7.8.x, 7.7.x, 7.6.x, 7.5.x, 7.4.x, 7.3.x, 7.2.x, 7.1.x

Package Information

  • Package owner: Dan Diplo
  • Created: 23/06/2013
  • Current version 2.4.2
  • .NET version 4.0,4.5.2
  • License MIT
  • Downloads on Our: 18.5K
  • Downloads on NuGet: 360.4K
  • Total downloads : 379K