7 votes

Azure Logger for Umbraco

This Umbraco package adds a log4net appender that uses Azure table storage and extends the Umbraco developer tree with functionality to view these logs.

Using Azure table storage for logs in preference to the file-system has an additional benefit of reducing file replication activity in load balanced environments where the file system is being synchronised (such as Azure Web Apps).

You will need to have a Azure Storage Account wit the tables service enabled (not ZRS) and you will need to have the account and and a access key for the Umbraco installation process. Once installed, will will have a new ConnectionString named "LoggingTableStorage" added to web.config.

By default the installer will create two appenders and loggers, the first one (AllTableAppender) captures all logs and the second one (WarningsTableAppender) captures only logs of warn level or above. You find you wish to add further appenders and loggers, here is an example for capturing publish events & xml refresh events using 2 loggers and one appender.

  <logger name="Umbraco.Core.Publishing.PublishingStrategy">
    <appender-ref ref="PublishedTableAppender"/>
  </logger>

  <logger name="umbraco.content">
    <appender-ref ref="PublishedTableAppender"/>
  </logger>

  <appender name="PublishedTableAppender" type="Our.Umbraco.AzureLogger.Core.TableAppender, Our.Umbraco.AzureLogger.Core">
    <param name="ConnectionString" value="LoggingTableStorage"/>
    <param name="TableName" value="UALPublished"/>
    <param name="TreeName" value="Published"/>
    <bufferSize value="0"/>
  </appender>

As a useful enhancement we also now store to URL and SessionId which triggered the log entry to be made, this can be very handy for tracking down issues.

NuGet

NuGet version is available:

Install-Package Our.Umbraco.AzureLogger -Pre

Screenshots

Package owner

Jeavon Leopold

Jeavon Leopold

Jeavon has 13161 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
8.3.x (untested)
8.2.x (untested)
8.1.x (untested)
8.0.x (untested)
7.15.x (untested)
7.14.x (untested)
7.13.x (untested)
7.12.x (untested)
7.11.x (100%)
7.10.x (100%)
7.9.x (100%)
7.8.x (100%)
7.7.x (100%)
7.6.x (100%)
7.5.x (100%)
7.4.x (100%)
7.3.x (100%)
7.2.x (untested)
7.1.x (untested)
7.0.x (untested)
6.1.x (untested)
6.0.x (untested)

You must login before you can report on package compatibility.

Package Information

  • Package owner: Jeavon Leopold
  • Contributors: Hendy Racher
  • Created: 06/06/2016
  • Current version 0.2.2
  • .net Version 4.5
  • License Apache 2.0
  • Downloads: 568

External resources