umbraco-packages - Our.Umbraco.AzureLogger 0.2.0-alpha-000121

An Azure storage table log4net appender and UI

PM> Install-Package Our.Umbraco.AzureLogger -Version 0.2.0-alpha-000121 -Source https://www.myget.org/F/umbraco-packages/api/v3/index.json

Copy to clipboard

> nuget.exe install Our.Umbraco.AzureLogger -Version 0.2.0-alpha-000121 -Source https://www.myget.org/F/umbraco-packages/api/v3/index.json

Copy to clipboard

> dotnet add package Our.Umbraco.AzureLogger --version 0.2.0-alpha-000121 --source https://www.myget.org/F/umbraco-packages/api/v3/index.json

Copy to clipboard
<PackageReference Include="Our.Umbraco.AzureLogger" Version="0.2.0-alpha-000121" />
Copy to clipboard
source https://www.myget.org/F/umbraco-packages/api/v3/index.json

nuget Our.Umbraco.AzureLogger  ~> 0.2.0-alpha-000121
Copy to clipboard

> choco install Our.Umbraco.AzureLogger --version 0.2.0-alpha-000121 --source https://www.myget.org/F/umbraco-packages/api/v2

Copy to clipboard
Import-Module PowerShellGet
Register-PSRepository -Name "umbraco-packages" -SourceLocation "https://www.myget.org/F/umbraco-packages/api/v2"
Install-Module -Name "Our.Umbraco.AzureLogger" -RequiredVersion "0.2.0-alpha-000121" -Repository "umbraco-packages" -AllowPreRelease
Copy to clipboard

Umbraco Azure Logger

Azure Logger

Build status

This Umbraco package adds a appender for log4net that uses a Azure Storage table instead of the file system to store your Umbraco logs. Also included is a UI for viewing and querying your log4net entries.

Once installed, edit the ConnectionString named "LoggingTableStorage" added to web.config include the name and key of your Azure storage account (ensure the account has the Table service enabled).

If your site is making a lot of log entries (e.g. you've set to DEBUG level) you should adjust the bufferSize value, this sets how often the logs are written to storage.

Example:

  <root>
    <priority value="Info"/>
    <appender-ref ref="AsynchronousLog4NetAppender" />
    <appender-ref ref="AllTableAppender"/>
    <appender-ref ref="WarningsTableAppender"/>
  </root>

  <appender name="AllTableAppender" type="Our.Umbraco.AzureLogger.Core.TableAppender, Our.Umbraco.AzureLogger.Core">
    <param name="ConnectionString" value="LoggingTableStorage"/>
    <param name="TableName" value="UALUmbracoTraceLog"/>
    <param name="TreeName" value="All Events"/>
    <bufferSize value="5"/>
    <!-- 0 indexed -->
  </appender>

  <appender name="WarningsTableAppender" type="Our.Umbraco.AzureLogger.Core.TableAppender, Our.Umbraco.AzureLogger.Core">
    <param name="ConnectionString" value="LoggingTableStorage"/>
    <param name="TableName" value="UALWarnings"/>
    <param name="TreeName" value="Warnings"/>
    <param name="IconName" value="icon-alert"/>
    <threshold value="WARN"/>
    <filter type="log4net.Filter.LevelRangeFilter">
      <levelMin value="WARN"/>
      <levelMax value="ERROR"/>
    </filter>
    <bufferSize value="0"/>
    <!-- 1 item in buffer -->
  </appender>

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

Url Example

Installation

Currently only NuGet packages are available

NuGet Packages Version
Release NuGet download
Pre-release MyGet download

Build status

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.

Once installed, edit the ConnectionString named "LoggingTableStorage" added to web.config include the name and key of your Azure storage account (ensure the account has the Table service enabled).

Tree Example

If your site is making a lot of log entries (e.g. you've set to DEBUG level) you should adjust the bufferSize value, this sets how often the logs are written to storage.

Example:

  <root>
    <priority value="Info"/>
    <appender-ref ref="AsynchronousLog4NetAppender" />
    <appender-ref ref="AllTableAppender"/>
    <appender-ref ref="WarningsTableAppender"/>
    <appender-ref ref="ReadOnlyTableAppender"/> <!-- enable the ui to read the logs, but prevent this server from writing -->
  </root>

  <appender name="AllTableAppender" type="Our.Umbraco.AzureLogger.Core.TableAppender, Our.Umbraco.AzureLogger.Core">
    <param name="ConnectionString" value="LoggingTableStorage"/>
    <param name="TableName" value="UALUmbracoTraceLog"/>
    <param name="TreeName" value="All Events"/>
    <bufferSize value="5"/><!-- 0 indexed -->
  </appender>

  <appender name="WarningsTableAppender" type="Our.Umbraco.AzureLogger.Core.TableAppender, Our.Umbraco.AzureLogger.Core">
    <param name="ConnectionString" value="LoggingTableStorage"/>
    <param name="TableName" value="UALWarnings"/>
    <param name="TreeName" value="Warnings"/>
    <param name="IconName" value="icon-alert"/>
    <threshold value="WARN"/>
    <filter type="log4net.Filter.LevelRangeFilter">
      <levelMin value="WARN"/>
      <levelMax value="ERROR"/>
    </filter>
    <bufferSize value="0"/><!-- 1 item in buffer -->
  </appender>
  
  <appender name="ReadOnlyTableAppender" type="Out.Umbraco.AzureLogger.Core.TableAppender, Our.Umbraco.AzureLogger.Core">
    <param name="ConnectionString" value="LoggingTableStorage"/>
    <param name="TableName" value="UALReadOnly"/>
    <param name="ReadOnly" value="true"/>
  </appneder>

The ConnectionString param can either be the actual connection string, or a name of a connection string as set in web.config:

  <connectionStrings>
    <!-- local Azure Storage Emulator -->
    <add name="LoggingTableStorage" connectionString="UseDevelopmentStorage=true" />
  </connectionStrings>

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.

Url Example

Installation

NuGet & Umbraco packages are available

NuGet Packages Version
Release NuGet download
Pre-release MyGet download
Umbraco Packages
Release Our Umbraco project page
Pre-release AppVeyor Artifacts

Licensing

This project is licensed under the Apache 2.0 license.

The project includes WindowsAzure.Storage licensed under the Apache License and Microsoft.Web.Xdt licensed under MS-EULA license.

  • Any 0.0
    • UmbracoCms.Core (>= 7.3.7)
    • WindowsAzure.Storage (>= 6.2.0)
  • .NETFramework 4.5: 4.5.0.0

Owners

Jeavon Leopold

Authors

Hendy Racher, Jeavon Leopold

Project URL

https://github.com/CrumpledDog/Umbraco-Azure-Logger

License

Apache-2.0

Tags

umbraco azure table storage logging log4net

Info

3052 total downloads
29 downloads for version 0.2.0-alpha-000121
Download (33.47 KB)
Found on the current feed only

Package history

Version Size Last updated Downloads Mirrored?
0.2.3-alpha-000192 36.96 KB Wed, 05 Sep 2018 13:36:17 GMT 27
0.2.3-alpha-000191 36.96 KB Wed, 25 Jul 2018 11:29:10 GMT 27
0.2.2-alpha-000187 36.96 KB Wed, 25 Jul 2018 09:46:00 GMT 28
0.2.2-alpha-000186 36.96 KB Wed, 25 Jul 2018 09:31:12 GMT 30
0.2.2-alpha-000185 36.95 KB Wed, 25 Jul 2018 09:26:10 GMT 28
0.2.2-alpha-000180 36.95 KB Fri, 26 May 2017 15:10:52 GMT 29
0.2.2-alpha-000179 36.95 KB Tue, 23 May 2017 08:44:33 GMT 27
0.2.1-alpha-000176 36.95 KB Tue, 23 May 2017 08:41:04 GMT 28
0.2.1-alpha-000174 36.95 KB Fri, 06 Jan 2017 19:59:19 GMT 123
0.2.1-alpha-000173 36.9 KB Fri, 06 Jan 2017 14:44:07 GMT 27
0.2.1-alpha-000172 36.78 KB Fri, 06 Jan 2017 12:19:52 GMT 27
0.2.1-alpha-000171 36.68 KB Thu, 05 Jan 2017 23:35:23 GMT 27
0.2.1-alpha-000170 34.84 KB Thu, 05 Jan 2017 21:58:38 GMT 27
0.2.1-alpha-000169 34.53 KB Wed, 07 Dec 2016 11:19:09 GMT 58
0.2.1-alpha-000168 34.55 KB Tue, 06 Dec 2016 17:46:10 GMT 27
0.2.1-alpha-000167 34.29 KB Tue, 06 Dec 2016 16:54:04 GMT 27
0.2.1-alpha-000166 34.14 KB Mon, 05 Dec 2016 12:45:04 GMT 27
0.2.1-alpha-000165 34.43 KB Fri, 02 Dec 2016 15:27:37 GMT 31
0.2.1-alpha-000164 34.43 KB Fri, 02 Dec 2016 13:17:00 GMT 28
0.2.1-alpha-000163 34.6 KB Wed, 05 Oct 2016 13:12:22 GMT 29
0.2.1-alpha-000162 34.6 KB Wed, 05 Oct 2016 11:42:19 GMT 27
0.2.1-alpha-000161 34.6 KB Wed, 05 Oct 2016 10:05:02 GMT 27
0.2.1-alpha-000160 34.59 KB Wed, 05 Oct 2016 09:13:48 GMT 27
0.2.1-alpha-000159 34.6 KB Wed, 14 Sep 2016 10:01:29 GMT 27
0.2.1-alpha-000158 34.5 KB Sun, 04 Sep 2016 13:15:15 GMT 26
0.2.1-alpha-000157 34.31 KB Sat, 27 Aug 2016 21:22:00 GMT 28
0.2.1-alpha-000156 34.31 KB Fri, 19 Aug 2016 23:43:04 GMT 27
0.2.1-alpha-000155 34.31 KB Tue, 26 Jul 2016 15:48:19 GMT 29
0.2.1-alpha-000154 34.31 KB Tue, 26 Jul 2016 14:40:25 GMT 28
0.2.1-alpha-000153 34.31 KB Sat, 09 Jul 2016 22:00:45 GMT 29
0.2.1-alpha-000152 34.31 KB Fri, 08 Jul 2016 23:57:23 GMT 27
0.2.1-alpha-000151 33.87 KB Wed, 29 Jun 2016 19:07:44 GMT 30
0.2.1-alpha-000150 33.87 KB Fri, 10 Jun 2016 13:52:27 GMT 28
0.2.1-alpha-000149 33.75 KB Thu, 09 Jun 2016 09:51:20 GMT 28
0.2.1-alpha-000148 33.69 KB Mon, 06 Jun 2016 10:20:15 GMT 25
0.2.1-alpha-000147 33.69 KB Mon, 06 Jun 2016 10:10:39 GMT 28
0.2.1-alpha-000146 33.69 KB Mon, 06 Jun 2016 10:01:59 GMT 29
0.2.1-alpha-000145 33.69 KB Mon, 06 Jun 2016 09:58:45 GMT 27
0.2.0-alpha-000141 33.68 KB Mon, 06 Jun 2016 09:37:08 GMT 28
0.2.0-alpha-000140 33.68 KB Mon, 06 Jun 2016 09:30:52 GMT 28
0.2.0-alpha-000139 33.68 KB Sat, 04 Jun 2016 21:28:04 GMT 27
0.2.0-alpha-000138 33.67 KB Thu, 02 Jun 2016 22:01:57 GMT 99
0.2.0-alpha-000137 33.6 KB Thu, 02 Jun 2016 21:08:22 GMT 27
0.2.0-alpha-000136 33.6 KB Thu, 02 Jun 2016 20:16:11 GMT 27
0.2.0-alpha-000135 33.6 KB Thu, 02 Jun 2016 09:38:25 GMT 27
0.2.0-alpha-000134 33.59 KB Thu, 02 Jun 2016 09:35:46 GMT 27
0.2.0-alpha-000133 33.6 KB Thu, 02 Jun 2016 08:31:38 GMT 27
0.2.0-alpha-000132 33.6 KB Wed, 01 Jun 2016 09:59:21 GMT 27
0.2.0-alpha-000131 33.6 KB Wed, 01 Jun 2016 09:42:35 GMT 26
0.2.0-alpha-000130 33.6 KB Tue, 31 May 2016 14:07:48 GMT 29
0.2.0-alpha-000129 33.59 KB Thu, 26 May 2016 18:26:48 GMT 28
0.2.0-alpha-000126 33.6 KB Thu, 26 May 2016 18:17:52 GMT 29
0.2.0-alpha-000125 33.6 KB Thu, 26 May 2016 18:16:09 GMT 28
0.2.0-alpha-000124 33.59 KB Thu, 26 May 2016 16:03:15 GMT 25
0.2.0-alpha-000123 33.65 KB Thu, 26 May 2016 08:46:04 GMT 38
0.2.0-alpha-000122 33.48 KB Fri, 20 May 2016 14:48:48 GMT 27
0.2.0-alpha-000121 33.47 KB Fri, 20 May 2016 14:13:17 GMT 29
0.2.0-alpha-000120 32.89 KB Thu, 19 May 2016 11:53:06 GMT 29
0.2.0-alpha-000119 32.87 KB Thu, 19 May 2016 10:17:55 GMT 33
0.2.0-alpha-000118 27.91 KB Fri, 06 May 2016 10:11:11 GMT 30
0.2.0-alpha-000117 27.26 KB Thu, 05 May 2016 16:55:25 GMT 27
0.2.0-alpha-000116 27.62 KB Thu, 05 May 2016 14:33:39 GMT 28
0.2.0-alpha-000115 27.58 KB Thu, 05 May 2016 11:43:07 GMT 28
0.2.0-alpha-000114 27.4 KB Thu, 05 May 2016 10:22:10 GMT 28
0.2.0-alpha-000113 27.28 KB Thu, 05 May 2016 09:11:42 GMT 27
0.2.0-alpha-000112 27.23 KB Tue, 03 May 2016 17:14:59 GMT 29
0.2.0-alpha-000111 27.27 KB Tue, 03 May 2016 12:27:21 GMT 43
0.2.0-alpha-000110 27.25 KB Sat, 30 Apr 2016 15:25:01 GMT 27
0.2.0-alpha-000109 27.2 KB Sat, 30 Apr 2016 15:13:00 GMT 28
0.2.0-alpha-000108 27.08 KB Fri, 29 Apr 2016 23:29:48 GMT 29
0.2.0-alpha-000107 26.97 KB Fri, 29 Apr 2016 20:50:13 GMT 27
0.2.0-alpha-000106 26.63 KB Fri, 29 Apr 2016 11:19:18 GMT 34
0.2.0-alpha-000105 26.63 KB Fri, 29 Apr 2016 10:54:15 GMT 27
0.2.0-alpha-000104 26.64 KB Fri, 29 Apr 2016 10:33:37 GMT 27
0.2.0-alpha-000103 26.55 KB Fri, 29 Apr 2016 01:20:20 GMT 26
0.2.0-alpha-000102 26.47 KB Fri, 29 Apr 2016 00:24:13 GMT 26
0.2.0-alpha-000101 26.46 KB Fri, 29 Apr 2016 00:18:26 GMT 27
0.2.0-alpha-000100 26.46 KB Fri, 29 Apr 2016 00:02:09 GMT 27
0.2.0-alpha-000099 26.87 KB Thu, 28 Apr 2016 23:13:43 GMT 28
0.2.0-alpha-000098 27.25 KB Thu, 28 Apr 2016 23:06:42 GMT 27
0.2.0-alpha-000097 26.9 KB Thu, 28 Apr 2016 21:41:41 GMT 27
0.2.0-alpha-000096 26.67 KB Thu, 28 Apr 2016 19:57:28 GMT 29
0.2.0-alpha-000095 21.33 KB Mon, 25 Apr 2016 15:00:10 GMT 43
0.2.0-alpha-000094 21.19 KB Sun, 24 Apr 2016 19:43:29 GMT 27
0.2.0-alpha-000093 21.17 KB Sun, 24 Apr 2016 17:56:58 GMT 27
0.2.0-alpha-000092 21.2 KB Sun, 24 Apr 2016 05:17:52 GMT 28
0.2.0-alpha-000091 20.99 KB Sun, 24 Apr 2016 02:30:23 GMT 28
0.2.0-alpha-000090 20.84 KB Sat, 23 Apr 2016 23:25:48 GMT 27
0.2.0-alpha-000089 20.59 KB Sat, 23 Apr 2016 21:52:38 GMT 29
0.2.0-alpha-000088 20.59 KB Sat, 23 Apr 2016 21:33:40 GMT 29
0.2.0-alpha-000087 20.59 KB Thu, 21 Apr 2016 13:55:08 GMT 46
0.2.0-alpha-000086 20.65 KB Thu, 21 Apr 2016 12:18:18 GMT 34
0.2.0-alpha-000085 19.01 KB Thu, 14 Apr 2016 17:01:07 GMT 34
0.2.0-alpha-000084 19 KB Thu, 14 Apr 2016 12:21:40 GMT 31
0.2.0-alpha-000083 18.89 KB Thu, 14 Apr 2016 08:45:09 GMT 29
0.2.0-alpha-000082 18.85 KB Thu, 14 Apr 2016 08:19:02 GMT 28
0.2.0-alpha-000081 18.74 KB Wed, 13 Apr 2016 17:11:37 GMT 28
0.1.0-alpha-000080 28.94 KB Fri, 01 Apr 2016 19:00:19 GMT 57
0.1.0-alpha-000078 28.94 KB Fri, 01 Apr 2016 18:54:00 GMT 27