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.
<PackageVersion Include="MCS.Logging.DotNetFramework" Version="1.0.4" />
                    
Directory.Packages.props
<PackageReference Include="MCS.Logging.DotNetFramework" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version 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.
#:package MCS.Logging.DotNetFramework@1.0.4
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MCS.Logging.DotNetFramework&version=1.0.4
                    
Install as a Cake Addin
#tool nuget:?package=MCS.Logging.DotNetFramework&version=1.0.4
                    
Install as a Cake Tool

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 1,071 6/17/2020
1.0.10 650 3/2/2020
1.0.9 646 10/30/2019
1.0.8 616 10/30/2019
1.0.7 604 10/30/2019
1.0.6 600 10/29/2019
1.0.5 626 10/29/2019
1.0.4 622 10/29/2019
1.0.3 770 10/28/2019 1.0.3 is deprecated because it has critical bugs.
1.0.2 634 10/28/2019
1.0.1 611 10/27/2019
1.0.0 593 10/25/2019

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