Waystone.WideLogEvents
5.1.1
dotnet add package Waystone.WideLogEvents --version 5.1.1
NuGet\Install-Package Waystone.WideLogEvents -Version 5.1.1
<PackageReference Include="Waystone.WideLogEvents" Version="5.1.1" />
<PackageVersion Include="Waystone.WideLogEvents" Version="5.1.1" />
<PackageReference Include="Waystone.WideLogEvents" />
paket add Waystone.WideLogEvents --version 5.1.1
#r "nuget: Waystone.WideLogEvents, 5.1.1"
#:package Waystone.WideLogEvents@5.1.1
#addin nuget:?package=Waystone.WideLogEvents&version=5.1.1
#tool nuget:?package=Waystone.WideLogEvents&version=5.1.1
Waystone.WideLogEvents
A core library for managing "wide" log events in .NET applications. This package provides the foundational infrastructure for capturing and managing a set of properties throughout a logical scope, which can then be enriched into your log events.
Key Concepts
Wide Log Events
A "wide" log event is a pattern where instead of logging many small, disconnected events, you accumulate relevant information throughout a process ( like an HTTP request) and log it all at once at the end. This makes it much easier to correlate data and understand the full context of an operation.
WideLogEventContext
The central point for managing properties within a scope. It uses AsyncLocal
to ensure properties are correctly tracked across asynchronous calls.
WideLogEventScope
A disposable scope that manages the lifecycle of properties. When a scope is created, it starts a new set of properties. When disposed, it restores the previous scope's properties.
Usage
1. Start a Scope
Wrap your operation in a WideLogEventScope:
using Waystone.WideLogEvents;
using (var scope = WideLogEventContext.BeginScope())
{
// Your code here
}
2. Push Properties
You can push properties to the current scope at any time:
WideLogEventContext.PushProperty("CustomerId", 12345);
WideLogEventContext.PushProperty("OrderDetails", new { Total = 100.00, ItemCount = 3 });
Integration
This package is intended to be used with an enrichment library like
Serilog.Enrichers.Waystone.WideLogEvents to actually include these properties
in your logs.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.2)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.2)
- Waystone.Monads (>= 5.1.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Waystone.WideLogEvents:
| Package | Downloads |
|---|---|
|
Serilog.Enrichers.Waystone.WideLogEvents
A Serilog enricher that integrates with Waystone.WideLogEvents to include scoped properties in your log events. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.1.1 | 722 | 2/6/2026 |
| 5.1.0 | 172 | 2/6/2026 |
| 5.1.0-wide-events.5 | 365 | 2/4/2026 |
| 5.1.0-wide-events.4 | 78 | 2/4/2026 |
| 5.1.0-wide-events.3 | 76 | 2/2/2026 |
| 5.1.0-wide-events.2 | 72 | 2/2/2026 |
| 5.1.0-wide-events.1 | 85 | 2/1/2026 |