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 13628 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
Version 8.18.x (untested)

You must login before you can report on package compatibility.

Previously reported to work on versions: 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

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 on Our: 749

External resources