Audit.NET.NLog
27.3.1
See the version list below for details.
dotnet add package Audit.NET.NLog --version 27.3.1
NuGet\Install-Package Audit.NET.NLog -Version 27.3.1
<PackageReference Include="Audit.NET.NLog" Version="27.3.1" />
<PackageVersion Include="Audit.NET.NLog" Version="27.3.1" />
<PackageReference Include="Audit.NET.NLog" />
paket add Audit.NET.NLog --version 27.3.1
#r "nuget: Audit.NET.NLog, 27.3.1"
#:package Audit.NET.NLog@27.3.1
#addin nuget:?package=Audit.NET.NLog&version=27.3.1
#tool nuget:?package=Audit.NET.NLog&version=27.3.1
Audit.NET.NLog
NLog storage provider for Audit.NET library (An extensible framework to audit executing operations in .NET).
Store the audit events using NLog™.
Install
NuGet Package
To install the package, run the following command on the Package Manager Console:
PM> Install-Package Audit.NET.NLog
Usage
Please see the Audit.NET Readme
Configuration
To set the NLog data provider globally, call the UseNLog() method on the fluent configuration API, for example:
Audit.Core.Configuration.Setup()
.UseNLog();
You can also configure the provider settings by using the fluent API, for example:
Audit.Core.Configuration.Setup()
.UseNLog(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()
.UseNLog(config => config
.Logger(ev => LogManager.GetLogger(ev.EventType))
.LogLevel(ev => ev.Environment.Exception != null ? LogLevel.Fatal : LogLevel.Info));
Settings
Logger: Indicates the NLog 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.
| 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 (1)
Showing the top 1 NuGet packages that depend on Audit.NET.NLog:
| Package | Downloads |
|---|---|
|
EQuality.Framework.Web.EF
token secret 改为一时序一天内计数有效 |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 32.0.0 | 3,065 | 1/8/2026 |
| 31.3.3 | 564 | 12/31/2025 |
| 31.3.2 | 689 | 12/20/2025 |
| 31.3.1 | 1,088 | 12/9/2025 |
| 31.3.0 | 760 | 12/5/2025 |
| 31.2.0 | 765 | 11/27/2025 |
| 31.1.0 | 776 | 11/26/2025 |
| 31.0.2 | 1,161 | 10/2/2025 |
| 31.0.1 | 3,001 | 8/28/2025 |
| 31.0.0 | 1,277 | 8/22/2025 |
| 30.1.3 | 1,045 | 8/19/2025 |
| 30.1.2 | 1,057 | 8/14/2025 |
| 30.1.1 | 1,051 | 8/13/2025 |
| 30.0.2 | 3,100 | 6/26/2025 |
| 30.0.1 | 1,383 | 5/29/2025 |
| 30.0.0 | 1,102 | 5/27/2025 |
| 29.0.1 | 1,121 | 5/8/2025 |
| 29.0.0 | 1,054 | 5/6/2025 |
| 28.0.0 | 1,083 | 5/5/2025 |
| 27.3.1 | 1,047 | 12/10/2024 |