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
- Host: GitHub
- URL: https://github.com/jbe2277/loggingsample
- Owner: jbe2277
- License: mit
- Created: 2020-05-01T19:20:00.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-08-10T17:21:41.000Z (10 months ago)
- Last Synced: 2025-08-10T19:12:31.173Z (10 months ago)
- Topics: csharp, dotnet, dotnet-core, dotnet-standard, log, logging, nlog, tracesource
- Language: C#
- Homepage: https://github.com/jbe2277/waf/wiki/Logging-with-.NET-Standard-2.0
- Size: 62.5 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.