Info
Version: | 2.0.0 |
Author(s): | Serilog Contributors |
Last Update: | Monday, February 21, 2022 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/mahdighorbanpour/serilog-sinks-azurecosmosdb |
NuGet Url: | https://www.nuget.org/packages/Serilog.Sinks.AzureCosmosDB |
Install
Install-Package Serilog.Sinks.AzureCosmosDB
dotnet add package Serilog.Sinks.AzureCosmosDB
paket add Serilog.Sinks.AzureCosmosDB
Serilog.Sinks.AzureCosmosDB Download (Unzip the "nupkg" after downloading)
Dependencies
- Microsoft.Azure.Cosmos(>= 3.12.0)
- Microsoft.CSharp(>= 4.7.0)
- Newtonsoft.Json(>= 12.0.3)
- Serilog(>= 2.10.0)
Tags
This code is based on serilog-sinks-azuredocumentdb and adapted to use the latest Microsof.Azure.Cosmos SDK version and uses a custom JsonSerializationSettings which helps to keep the sink alive when serialization fails sometimes specially for Exceptions!.