Audit.NET.Serilog
33.0.0
dotnet add package Audit.NET.Serilog --version 33.0.0
NuGet\Install-Package Audit.NET.Serilog -Version 33.0.0
<PackageReference Include="Audit.NET.Serilog" Version="33.0.0" />
<PackageVersion Include="Audit.NET.Serilog" Version="33.0.0" />
<PackageReference Include="Audit.NET.Serilog" />
paket add Audit.NET.Serilog --version 33.0.0
#r "nuget: Audit.NET.Serilog, 33.0.0"
#:package Audit.NET.Serilog@33.0.0
#addin nuget:?package=Audit.NET.Serilog&version=33.0.0
#tool nuget:?package=Audit.NET.Serilog&version=33.0.0
Audit.NET.Serilog
Serilog storage provider for Audit.NET library (An extensible framework to audit executing operations in .NET).
Store the audit events using Serilog™.
Install
NuGet Package
To install the package, run the following command on the Package Manager Console:
PM> Install-Package Audit.NET.Serilog
Usage
Please see the Audit.NET Readme
Configuration
To set the Serilog data provider globally, call the UseSerilog() method on the fluent configuration API, for example:
Audit.Core.Configuration.Setup()
.UseSerilog();
You can also configure the provider settings by using the fluent API, for example:
Audit.Core.Configuration.Setup()
.UseSerilog(config => config
.Logger(LogManager.GetLogger(typeof(MyClass)))
.LogLevel(LogLevel.Debug)
.Message(auditEvent => auditEvent.ToJson()));
The Logger and LogLevel settings can be configured as a function of the audit event, for example:
Audit.Core.Configuration.Setup()
.UseSerilog(config => config
.Logger(ev => LogManager.GetLogger(ev.EventType))
.LogLevel(ev => ev.Environment.Exception != null ? LogLevel.Fatal : LogLevel.Info));
Settings
Logger: Indicates the Serilog ILogger logger instance to use. Default is obtained by using the audit event typeLogManager.GetLogger(auditEvent.GetType()).LogLevel: Indicates the log level to use (debug, info, warn, error or fatal). Default is Info unless there is an exception, in which case it logs as Error.Message: Indicates the textual message to log. Default is the AuditEvent JSON including the EventId as a custom field.
ZZZ Projects - Sponsorship
Entity Framework Extensions and Dapper Plus are major sponsors and are proud to contribute to the development of Audit.NET
Combine the power of auditing with the speed of Bulk Operations to get the best of both worlds — audit and performance.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. 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 is compatible. 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. |
NuGet packages (18)
Showing the top 5 NuGet packages that depend on Audit.NET.Serilog:
| Package | Downloads |
|---|---|
|
SU2.C15e.Infrastructure.Common
Clean Architecture template — Infrastructure.Common sub-package: lightweight cross-cutting infra helpers (string encryption AES-256-CBC + PBKDF2, and other low-dependency utilities). Numeronym `C15e` = CleanArchitecture. Generation 2026 series. See docs/plans/infrastructure-package-split-redesign.md. |
|
|
Segugio
Una libreria per la gestione di audit con più provider. |
|
|
SU2.C15e.Web
Clean Architecture template — Web library CORE (FastEndpoints BaseEndpoint base classes, InternalAuthorize + AuthorizationLogic, middleware: GlobalExceptionHandler/RequestCorrelation/Timeout/Idempotency/IscStatusCodePages, JsonErrorMessageResolver, CORS + Compression setup helpers, ForwardCurrentUserHandler, CurrentUser/CurrentRequest services, FastEndpointsErrorBuilder, ExtendedSender/AddConsumerMediator). Slim: does NOT reference the meta SU2.Infrastructure. Batteries-included composition (AddServiceConfigs + Audit HTTP wiring) lives in SU2.Web.Defaults. Numeronym `C15e` = CleanArchitecture. Generation 2026 series. |
|
|
SU2.C15e.Infrastructure
Legacy compatibility bundle forwarding infrastructure registration to the opt-in Common, Caching and Persistence packages. |
|
|
SU2.C15e.Infrastructure.BackgroundJobs
Clean Architecture template — Infrastructure.BackgroundJobs sub-package: in-memory channel-based background job worker (default) + Hangfire adapters (SQL Server / Redis / MongoDB / in-memory storage). Numeronym `C15e` = CleanArchitecture. Generation 2026 series. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 33.0.0 | 133 | 9/15/2026 |
| 32.3.1 | 1,957 | 8/19/2026 |
| 32.3.0 | 199 | 8/17/2026 |
| 32.2.0 | 6,992 | 6/12/2026 |
| 32.1.1 | 368 | 6/1/2026 |
| 32.1.0 | 4,382 | 5/7/2026 |
| 32.0.0 | 12,093 | 1/8/2026 |
| 31.3.3 | 11,864 | 12/31/2025 |
| 31.3.2 | 281 | 12/20/2025 |
| 31.3.1 | 1,232 | 12/9/2025 |
| 31.3.0 | 559 | 12/5/2025 |
| 31.2.0 | 462 | 11/27/2025 |
| 31.1.0 | 268 | 11/26/2025 |
| 31.0.2 | 13,540 | 10/2/2025 |
| 31.0.1 | 5,328 | 8/28/2025 |
| 31.0.0 | 340 | 8/22/2025 |
| 30.1.3 | 962 | 8/19/2025 |
| 30.1.2 | 349 | 8/14/2025 |
| 30.1.1 | 382 | 8/13/2025 |
| 30.0.2 | 13,549 | 6/26/2025 |

