Skip to content

Authenticom/serilog-sinks-azuretablestorage

 
 

Repository files navigation

Serilog.Sinks.AzureTableStorage Build status

Writes to a table in Windows Azure Table Storage.

Package - Serilog.Sinks.AzureTableStorage | Platforms - .NET 4.5

var storage = CloudStorageAccount.FromConfigurationSetting("MyStorage");

var log = new LoggerConfiguration()
    .WriteTo.AzureTableStorage(storage)
    .CreateLogger();

JSON configuration

It is possible to configure the sink using Serilog.Settings.Configuration by specifying the table name and connection string in appsettings.json:

"Serilog": {
  "WriteTo": [
    {"Name": "AzureTableStorage", "Args": {"storageTableName": "", "connectionString": ""}}
  ]
}

JSON configuration must be enabled using ReadFrom.Configuration(); see the documentation of the JSON configuration package for details.

About

A Serilog sink that writes events to Azure Table Storage

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 98.5%
  • PowerShell 1.5%