An open API service indexing awesome lists of open source software.

https://github.com/jbe2277/loggingsample

Sample for logging with .NET Standard 2.0
https://github.com/jbe2277/loggingsample

csharp dotnet dotnet-core dotnet-standard log logging nlog tracesource

Last synced: 4 months ago
JSON representation

Sample for logging with .NET Standard 2.0

Awesome Lists containing this project

README

          

# LoggingSample
Sample applications for the article: [Logging with .NET Standard 2.0](https://github.com/jbe2277/waf/wiki/Logging-with-.NET-Standard-2.0)

The solution contains:
Name | Description
--- | ---
SampleLibrary | .NET Standard 2.0 library that shows how TraceSource can be used for logging
SampleLibrary2 | .NET Standard 2.0 library that shows how Extensions.Logging can be used for logging
NLogConfigSample | WPF app that uses NLog for logging via `NLog.config` file
NLogCodeSample | WPF app that uses NLog for logging via code configuration
MicrosoftLoggingSample | WPF app that uses Microsoft.Extensions.Logging for logging. Just shows how to integrate TraceSource from SampleLibrary. But it does not support logging into files.