https://github.com/sharpjs/sharp.diagnostics.logging
Micro-framework for logging with the .NET TraceSource API
https://github.com/sharpjs/sharp.diagnostics.logging
dotnet logging tracesource
Last synced: 10 months ago
JSON representation
Micro-framework for logging with the .NET TraceSource API
- Host: GitHub
- URL: https://github.com/sharpjs/sharp.diagnostics.logging
- Owner: sharpjs
- License: isc
- Created: 2018-09-02T16:32:16.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2022-06-12T01:35:09.000Z (over 3 years ago)
- Last Synced: 2025-02-26T04:19:17.070Z (11 months ago)
- Topics: dotnet, logging, tracesource
- Language: C#
- Homepage:
- Size: 250 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Sharp.Diagnostics.Logging
Micro-framework to improve the ergonomics of logging with the .NET
`TraceSource` API.
## Status
[](https://github.com/sharpjs/Sharp.Diagnostics.Logging/actions)
[](https://www.nuget.org/packages/Sharp.Diagnostics.Logging)
[](https://www.nuget.org/packages/Sharp.Diagnostics.Logging)
- **Stable:** Used in production for years with no reported bugs.
- **Tested:** 100% coverage by automated tests.
- **Legacy:** No further development except for occasional maintenance.
- **Documented:** IntelliSense on everything.
The replacement for the legacy `TraceSource` API is
[`Microsoft.Extensions.Logging`](https://www.nuget.org/packages/Microsoft.Extensions.Logging).
## Installation
A [NuGet package](https://www.nuget.org/packages/Sharp.Diagnostics.Logging) is available.
## Documentation
Documented via IntelliSense. No external documentation.
## Building From Source
Requirements:
- Visual Studio 2022 or later (if using Visual Studio).
- Appropriate .NET SDKs — see the target framework(s) specified in each `.csproj` file.
- Download [.NET SDKs](https://dotnet.microsoft.com/download/dotnet)
- Download [.NET Framework Developer Packs](https://dotnet.microsoft.com/download/dotnet-framework)
```powershell
# The default: build and run tests
.\Make.ps1 [-Test] [-Configuration ]
# Just build; don't run tests
.\Make.ps1 -Build [-Configuration ]
# Build and run tests w/coverage
.\Make.ps1 -Coverage [-Configuration ]
```