MCS.Logging.DotNetFramework 1.0.4

There is a newer version of this package available.
See the version list below for details.
dotnet add package MCS.Logging.DotNetFramework --version 1.0.4
NuGet\Install-Package MCS.Logging.DotNetFramework -Version 1.0.4
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MCS.Logging.DotNetFramework" Version="1.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MCS.Logging.DotNetFramework --version 1.0.4
#r "nuget: MCS.Logging.DotNetFramework, 1.0.4"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MCS.Logging.DotNetFramework as a Cake Addin
#addin nuget:?package=MCS.Logging.DotNetFramework&version=1.0.4

// Install MCS.Logging.DotNetFramework as a Cake Tool
#tool nuget:?package=MCS.Logging.DotNetFramework&version=1.0.4

MCS.Logging.DotNetFramework

A logging library that uses Serilog for logging application data.

This library generalizes a collection of useful logging tools to reduce some of the repeat work associated with implementing Serilog in a project. It provides easy to use performance, usage, diagnostic, and exception logging methods.

Supported Serilog Sinks

The following are supported with drop in app.config entries (documentation pending as the package develops). They can be used individually or in combinations as you choose.

  1. File
  2. MS SQL Server

General

The sink you wish to use are registered via a list entered as an appsetting entry with name "McsFileLogDestinationTypes".

<add key="McsFileLogDestinationTypes" value="\" />

The list may be either comma-delimited or space-delimited and capitalization does not matter. You can you one or more of the options. Including none will result in no logs being created but should not result in operational failure.

Current Configurations

File

File sinks are supported with a single app.config appsetting entry to specify the folder location in which log files should be placed.

<add key="LogFolderLocation" value="\" />

Four files will be published for each day. One each for performance, usage, diagnostic, and errors. Each of them will end with a date in the format MMddyyyy.

SQL

MS Sql Logs are enabled with 2 app.config entries. A connection string named "LogConnection" and an appsetting to control the log batch size.


<appSettings>
  ...
  <add key="LogBatchSize" value="1"/>
  ...
</appSettings>

<connectionStrings>
    <add connectionString="" providerName="System.Data.SqlClient" name="LogConnection"/>
</connectionStrings>


Log batch size corresponds directly the option of the same name found in the Serilog sink library for MSSql. It corresponds to the number of log entries which will be held in memory before pushing them all to the log in a batch. This will default to 1 if not provided, but setting the number higher can relieve network pressure in cases of high throughput.

Product Compatible and additional computed target framework versions.
.NET Framework net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.11 929 6/17/2020
1.0.10 511 3/2/2020
1.0.9 497 10/30/2019
1.0.8 470 10/30/2019
1.0.7 465 10/30/2019
1.0.6 457 10/29/2019
1.0.5 481 10/29/2019
1.0.4 476 10/29/2019
1.0.3 534 10/28/2019
1.0.2 482 10/28/2019
1.0.1 464 10/27/2019
1.0.0 459 10/25/2019

Improved file log location search and added preliminary implementation of Sql Server as a log sink option.