SharpLogger 1.0.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package SharpLogger --version 1.0.1
NuGet\Install-Package SharpLogger -Version 1.0.1
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="SharpLogger" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SharpLogger --version 1.0.1
#r "nuget: SharpLogger, 1.0.1"
#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 SharpLogger as a Cake Addin
#addin nuget:?package=SharpLogger&version=1.0.1

// Install SharpLogger as a Cake Tool
#tool nuget:?package=SharpLogger&version=1.0.1

SharpLogger

A custom logging system for .NET Core 2.0, written in C#, which allows levels and filtering, with an independent output implementation.

Getting Started

View the examples page for information on a various logger setups.

Overview

SharpLogger attempts to push you away from being stingy with what you log. I believe that it is valuable to log many things in your code, however, this often turns into a mess, when you have a cluttered log file with information regarding objects you are no longer interested in, or are not currently concerned with.

The solution is not to remove those logs, but rather filter them, to only show the information you are interested in. SharpLogger allows you to specify a log level for your logs, as well as a filter, which can be dot separated into groups and subgroups. This allows you to simply specify a filter you are interested in, and viewing the logs regarding that specific filter. Filters can be changed on the fly, while the application is running.

Printer

The logger calls the printer class' Print() method, allowing you to override the class with your own handler for the log itself, meaning you are not restricted to Console.WriteLine(), or Debug.Log() for Unity, but can take the processed string from the logger and do with it what you like, including writing to a file.

This also means you can use SharpLogger on slightly different environments, since you are able to control them individually, such as Unity Client and Server applications.

Diagrams

Component Diagram

Component Diagram

Class Diagram

Class Diagram

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

This package has no dependencies.

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.5 1,099 1/12/2018
1.0.2 892 1/9/2018
1.0.1 1,007 1/7/2018
1.0.0 1,025 1/7/2018

Initial release.