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

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

Awesome Lists containing this project

README

          

# Sharp.Diagnostics.Logging

Micro-framework to improve the ergonomics of logging with the .NET
`TraceSource` API.

## Status

[![Build](https://github.com/sharpjs/Sharp.Diagnostics.Logging/workflows/Build/badge.svg)](https://github.com/sharpjs/Sharp.Diagnostics.Logging/actions)
[![NuGet](https://img.shields.io/nuget/v/Sharp.Diagnostics.Logging.svg)](https://www.nuget.org/packages/Sharp.Diagnostics.Logging)
[![NuGet](https://img.shields.io/nuget/dt/Sharp.Diagnostics.Logging.svg)](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 ]
```