Innovabit.DotNet.Interceptors.Logging.Abstractions
2.0.117
See the version list below for details.
dotnet add package Innovabit.DotNet.Interceptors.Logging.Abstractions --version 2.0.117
NuGet\Install-Package Innovabit.DotNet.Interceptors.Logging.Abstractions -Version 2.0.117
<PackageReference Include="Innovabit.DotNet.Interceptors.Logging.Abstractions" Version="2.0.117" />
<PackageVersion Include="Innovabit.DotNet.Interceptors.Logging.Abstractions" Version="2.0.117" />
<PackageReference Include="Innovabit.DotNet.Interceptors.Logging.Abstractions" />
paket add Innovabit.DotNet.Interceptors.Logging.Abstractions --version 2.0.117
#r "nuget: Innovabit.DotNet.Interceptors.Logging.Abstractions, 2.0.117"
#:package Innovabit.DotNet.Interceptors.Logging.Abstractions@2.0.117
#addin nuget:?package=Innovabit.DotNet.Interceptors.Logging.Abstractions&version=2.0.117
#tool nuget:?package=Innovabit.DotNet.Interceptors.Logging.Abstractions&version=2.0.117
Innovabit.DotNet.Interceptors.Logging.Abstractions
Attribute-driven method logging for the
Innovabit.DotNet.Interceptors
suite. This is the base package; pick a provider package
(...Logging.Serilog or ...Logging.Log4Net) to actually emit the logs.
What it provides
[Log]— logs a method's start/end, timing, inputs, outputs and exceptions.[DoNotLog]— hides a specific parameter or property from the logs.[Sensitive]/[Mask](from the core package) — keep a parameter in the log entry with its value withheld or partially masked, and do the same in audit entries, spans and exception notifications. Use[DoNotLog]to drop a parameter from the log only; use these when the value must not be recorded anywhere.LogDefaults/ConfigureLogDefaults— global defaults for[Log], configured once from DI.ILogger/ILoggerFactory— the provider-agnostic logging abstraction.LogInterceptor— the interceptor itself.- Customizable
ILoggingMessageFormatterandIValueRenderer(JSON by default).
Install
dotnet add package Innovabit.DotNet.Interceptors.Logging.Abstractions
Then add a provider, e.g. Innovabit.DotNet.Interceptors.Logging.Serilog.
Usage
public class OrderService : IOrderService
{
[Log(IncludeInput = true, IncludeOutput = true, Timing = true)]
public Task<int> CountAsync([DoNotLog] string secret) { ... }
}
[Log] options include Timing, IncludeInput, IncludeOutput, IncludeException,
OnExceptionRethrow, and the UseFormatter / UseInputValueRenderer /
UseOutputValueRenderer extension points.
Configuring defaults (stop repeating [Log(...)])
Set the defaults once from DI and let every method use a bare [Log], spelling out only
the properties that differ. Any property set explicitly on a method's own [Log] always wins
over the configured default; every property left unset inherits from it.
services.AddInterceptors()
// provider Add* methods take an optional configureDefaults callback...
.AddSerilog(() => new LoggerConfiguration().WriteTo.Console().CreateLogger(),
defaults =>
{
defaults.IncludeOutput = false; // don't log return values by default
defaults.UseInputValueRenderer = typeof(MyRenderer);
});
// ...or configure them separately on the builder:
// builder.ConfigureLogDefaults(defaults => defaults.IncludeOutput = false);
public class OrderService : IOrderService
{
[Log] // inherits every default (here: output logging is off)
public Task DoWorkAsync() { ... }
[Log(IncludeOutput = true)] // overrides just the one property that differs
public Task<int> CountAsync() { ... }
}
LogDefaults exposes the same properties as [Log]. Configure the defaults at start-up,
before any intercepted method runs; the last call wins.
Part of
The Innovabit.DotNet.Interceptors suite —
github.com/Innovabit/dotnet-interceptors.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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 is compatible. 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 is compatible. 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. |
-
net10.0
- Innovabit.DotNet.Interceptors.Abstractions (>= 2.0.117)
-
net8.0
- Innovabit.DotNet.Interceptors.Abstractions (>= 2.0.117)
- System.Text.Json (>= 10.0.14)
-
net9.0
- Innovabit.DotNet.Interceptors.Abstractions (>= 2.0.117)
- System.Text.Json (>= 10.0.14)
NuGet packages (6)
Showing the top 5 NuGet packages that depend on Innovabit.DotNet.Interceptors.Logging.Abstractions:
| Package | Downloads |
|---|---|
|
Innovabit.DotNet.Interceptors.Logging.Log4Net
Package for logging with Log4Net using interceptor. |
|
|
Innovabit.DotNet.Interceptors.Logging.Serilog
Package for logging using interceptor. |
|
|
Innovabit.DotNet.Interception.Logging.Log4Net
Package Description |
|
|
Innovabit.DotNet.Interceptors.All
Meta-package: every interceptor concern in the suite (logging, validation, caching, notifications, telemetry, audit, authorization, rate limiting, coordination, feature gates, transactions, retry/timeout/circuit breaker/fallback) in one reference. Providers are separate packages — pick the ones you use. |
|
|
Innovabit.DotNet.Interceptors.Logging.MicrosoftExtensions
Microsoft.Extensions.Logging provider for interceptor-based [Log] methods. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.0.119 | 60 | 11/14/2026 |
| 2.0.118 | 194 | 11/7/2026 |
| 2.0.117 | 209 | 10/31/2026 |
| 2.0.116 | 189 | 10/26/2026 |
| 2.0.115 | 200 | 10/17/2026 |
| 2.0.114 | 189 | 10/10/2026 |
| 2.0.113 | 208 | 10/3/2026 |
| 2.0.112 | 195 | 9/28/2026 |
| 2.0.111 | 184 | 9/28/2026 |
| 2.0.110 | 180 | 9/27/2026 |
| 2.0.109 | 182 | 9/26/2026 |
| 2.0.108 | 184 | 9/26/2026 |
| 2.0.107 | 185 | 9/26/2026 |
| 2.0.106 | 159 | 9/25/2026 |
| 2.0.105 | 175 | 9/25/2026 |
| 1.0.0.104 | 177 | 9/25/2026 |
| 1.0.0.103 | 131 | 9/25/2026 |
| 1.0.0.102 | 141 | 9/25/2026 |
| 1.0.0.101 | 147 | 9/25/2026 |
| 1.0.0.100 | 132 | 9/25/2026 |