Innovabit.DotNet.Interceptors.Logging.Abstractions
3.0.136
dotnet add package Innovabit.DotNet.Interceptors.Logging.Abstractions --version 3.0.136
NuGet\Install-Package Innovabit.DotNet.Interceptors.Logging.Abstractions -Version 3.0.136
<PackageReference Include="Innovabit.DotNet.Interceptors.Logging.Abstractions" Version="3.0.136" />
<PackageVersion Include="Innovabit.DotNet.Interceptors.Logging.Abstractions" Version="3.0.136" />
<PackageReference Include="Innovabit.DotNet.Interceptors.Logging.Abstractions" />
paket add Innovabit.DotNet.Interceptors.Logging.Abstractions --version 3.0.136
#r "nuget: Innovabit.DotNet.Interceptors.Logging.Abstractions, 3.0.136"
#:package Innovabit.DotNet.Interceptors.Logging.Abstractions@3.0.136
#addin nuget:?package=Innovabit.DotNet.Interceptors.Logging.Abstractions&version=3.0.136
#tool nuget:?package=Innovabit.DotNet.Interceptors.Logging.Abstractions&version=3.0.136
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 | 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. net11.0 is compatible. |
-
net10.0
- Innovabit.DotNet.Interceptors.Abstractions (>= 3.0.136)
-
net11.0
- Innovabit.DotNet.Interceptors.Abstractions (>= 3.0.136)
NuGet packages (6)
Showing the top 5 NuGet packages that depend on Innovabit.DotNet.Interceptors.Logging.Abstractions:
| Package | Downloads |
|---|---|
|
Innovabit.DotNet.Interceptors.Logging.Serilog
Package for logging using interceptor. |
|
|
Innovabit.DotNet.Interceptors.Logging.Log4Net
Package for logging with Log4Net using interceptor. |
|
|
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.Interception.Logging.Log4Net
Package Description |
|
|
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 |
|---|---|---|
| 3.0.136 | 64 | 12/5/2026 |
| 3.0.135 | 261 | 11/30/2026 |
| 3.0.134 | 145 | 11/30/2026 |
| 3.0.133 | 142 | 11/30/2026 |
| 3.0.132 | 139 | 11/30/2026 |
| 3.0.129 | 143 | 11/30/2026 |
| 3.0.128 | 143 | 11/30/2026 |
| 3.0.127 | 168 | 11/30/2026 |
| 3.0.126 | 161 | 11/30/2026 |
| 3.0.125 | 153 | 11/30/2026 |
| 3.0.124 | 173 | 11/28/2026 |
| 3.0.123 | 145 | 11/28/2026 |
| 3.0.122 | 272 | 11/21/2026 |
| 2.0.121 | 203 | 11/21/2026 |
| 2.0.120 | 188 | 11/21/2026 |
| 2.0.119 | 266 | 11/14/2026 |
| 2.0.118 | 214 | 11/7/2026 |
| 2.0.117 | 235 | 10/31/2026 |
| 2.0.116 | 213 | 10/26/2026 |
| 2.0.115 | 218 | 10/17/2026 |