Serilog.Sinks.LineNotify 2.0.0

Serilog.Sinks.LineNotify

Install-Package Serilog.Sinks.LineNotify -Version 2.0.0
dotnet add package Serilog.Sinks.LineNotify --version 2.0.0
<PackageReference Include="Serilog.Sinks.LineNotify" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Serilog.Sinks.LineNotify --version 2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Serilog.Sinks.LineNotify, 2.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Serilog.Sinks.LineNotify as a Cake Addin
#addin nuget:?package=Serilog.Sinks.LineNotify&version=2.0.0

// Install Serilog.Sinks.LineNotify as a Cake Tool
#tool nuget:?package=Serilog.Sinks.LineNotify&version=2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Set appsettings.json

{
    "Serilog": {
        "WriteTo": [
            {
                "Name": "LineNotify",
                "Args": {
                    "OutputTemplate": "{NewLine}DateTime:{Timestamp:yyyy/MM/dd HH:mm:ss},{NewLine}Error Level: {Level},{NewLine}EnvironmentName: {EnvironmentName},{NewLine}ApplicationName: {ApplicationName},{NewLine}RuntimeId: {RuntimeId},{NewLine}Message: {Message:lj},{NewLine}XCorrelationID: {XCorrelationID},{NewLine}Exception: {Exception}",
                    "LineNotifyTokens": [
                        // Line Notify token
                        "" 
                    ],
                    "MinutesForBlockDuplicatedLog": 10
                }
            }
        ]
    }
}

Add nuget package Serilog.Settings.Configuration

Apply appsettings.json

IConfigurationBuilder configurationBuilder = new ConfigurationBuilder()
    .AddJsonFile("appsettings.json", optional : false, reloadOnChange : true);
IConfiguration configuration = configurationBuilder.Build();

Log.Logger = new LoggerConfiguration().ReadFrom.Configuration(configuration).CreateLogger();

Set appsettings.json

{
    "Serilog": {
        "WriteTo": [
            {
                "Name": "LineNotify",
                "Args": {
                    "OutputTemplate": "{NewLine}DateTime:{Timestamp:yyyy/MM/dd HH:mm:ss},{NewLine}Error Level: {Level},{NewLine}EnvironmentName: {EnvironmentName},{NewLine}ApplicationName: {ApplicationName},{NewLine}RuntimeId: {RuntimeId},{NewLine}Message: {Message:lj},{NewLine}XCorrelationID: {XCorrelationID},{NewLine}Exception: {Exception}",
                    "LineNotifyTokens": [
                        // Line Notify token
                        "" 
                    ],
                    "MinutesForBlockDuplicatedLog": 10
                }
            }
        ]
    }
}

Add nuget package Serilog.Settings.Configuration

Apply appsettings.json

IConfigurationBuilder configurationBuilder = new ConfigurationBuilder()
    .AddJsonFile("appsettings.json", optional : false, reloadOnChange : true);
IConfiguration configuration = configurationBuilder.Build();

Log.Logger = new LoggerConfiguration().ReadFrom.Configuration(configuration).CreateLogger();

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
2.0.0 265 4/23/2021
1.0.2 1,015 6/24/2020
1.0.0 476 6/24/2020