Audit.NET.log4net
26.0.0
See the version list below for details.
dotnet add package Audit.NET.log4net --version 26.0.0
NuGet\Install-Package Audit.NET.log4net -Version 26.0.0
<PackageReference Include="Audit.NET.log4net" Version="26.0.0" />
paket add Audit.NET.log4net --version 26.0.0
#r "nuget: Audit.NET.log4net, 26.0.0"
// Install Audit.NET.log4net as a Cake Addin #addin nuget:?package=Audit.NET.log4net&version=26.0.0 // Install Audit.NET.log4net as a Cake Tool #tool nuget:?package=Audit.NET.log4net&version=26.0.0
Audit.NET.log4net
log4net storage provider for Audit.NET library (An extensible framework to audit executing operations in .NET).
Store the audit events using Apache log4net™.
Install
NuGet Package
To install the package, run the following command on the Package Manager Console:
PM> Install-Package Audit.NET.log4net
Usage
Please see the Audit.NET Readme
Configuration
To set the log4net data provider globally, call the UseLog4net()
method on the fluent configuration API, for example:
Audit.Core.Configuration.Setup()
.UseLog4net();
You can also configure the provider settings by using the fluent API, for example:
Audit.Core.Configuration.Setup()
.UseLog4net(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()
.UseLog4net(config => config
.Logger(ev => LogManager.GetLogger(ev.EventType))
.LogLevel(ev => ev.Environment.Exception != null ? LogLevel.Fatal : LogLevel.Info));
Settings
Logger
Indicates the log4net ILog 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 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. |
.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
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
27.0.1 | 33 | 9/4/2024 |
27.0.0 | 69 | 9/3/2024 |
26.0.1 | 113 | 8/22/2024 |
26.0.0 | 104 | 7/19/2024 |
25.0.7 | 154 | 7/4/2024 |
25.0.6 | 94 | 6/24/2024 |
25.0.5 | 102 | 6/18/2024 |
25.0.4 | 323 | 3/24/2024 |
25.0.3 | 203 | 3/13/2024 |
25.0.2 | 187 | 3/12/2024 |
25.0.1 | 262 | 2/28/2024 |
25.0.0 | 251 | 2/16/2024 |
24.0.1 | 363 | 2/12/2024 |
24.0.0 | 271 | 2/12/2024 |
23.0.0 | 516 | 12/14/2023 |
22.1.0 | 425 | 12/9/2023 |
22.0.2 | 499 | 12/1/2023 |
22.0.1 | 469 | 11/16/2023 |
22.0.0 | 430 | 11/14/2023 |
21.1.0 | 653 | 10/9/2023 |
21.0.4 | 538 | 9/15/2023 |
21.0.3 | 872 | 7/9/2023 |
21.0.2 | 697 | 7/6/2023 |
21.0.1 | 711 | 5/27/2023 |
21.0.0 | 920 | 4/15/2023 |
20.2.4 | 842 | 3/27/2023 |
20.2.3 | 782 | 3/17/2023 |
20.2.2 | 785 | 3/14/2023 |
20.2.1 | 796 | 3/11/2023 |
20.2.0 | 781 | 3/7/2023 |
20.1.6 | 861 | 2/23/2023 |
20.1.5 | 829 | 2/9/2023 |
20.1.4 | 1,215 | 1/28/2023 |
20.1.3 | 891 | 12/21/2022 |
20.1.2 | 821 | 12/14/2022 |
20.1.1 | 857 | 12/12/2022 |
20.1.0 | 859 | 12/4/2022 |
20.0.4 | 869 | 11/30/2022 |
20.0.3 | 1,237 | 10/28/2022 |
20.0.2 | 939 | 10/26/2022 |
20.0.1 | 1,089 | 10/21/2022 |
20.0.0 | 1,259 | 10/1/2022 |
19.4.1 | 1,395 | 9/10/2022 |
19.4.0 | 1,035 | 9/2/2022 |
19.3.0 | 1,067 | 8/23/2022 |
19.2.2 | 1,018 | 8/11/2022 |
19.2.1 | 1,064 | 8/6/2022 |
19.2.0 | 1,495 | 7/24/2022 |
19.1.4 | 2,008 | 5/23/2022 |
19.1.3 | 1,014 | 5/22/2022 |
19.1.2 | 1,028 | 5/18/2022 |
19.1.1 | 1,151 | 4/28/2022 |
19.1.0 | 1,424 | 4/10/2022 |
19.0.7 | 1,106 | 3/13/2022 |
19.0.6 | 1,039 | 3/7/2022 |
19.0.5 | 1,411 | 1/28/2022 |
19.0.4 | 1,149 | 1/23/2022 |
19.0.3 | 945 | 12/14/2021 |
19.0.2 | 900 | 12/11/2021 |
19.0.1 | 1,398 | 11/20/2021 |
19.0.0 | 898 | 11/11/2021 |
19.0.0-rc.net60.2 | 163 | 9/26/2021 |
19.0.0-rc.net60.1 | 220 | 9/16/2021 |
18.1.6 | 3,291 | 9/26/2021 |
18.1.5 | 1,256 | 9/7/2021 |
18.1.4 | 959 | 9/6/2021 |
18.1.3 | 933 | 8/19/2021 |
18.1.2 | 1,065 | 8/8/2021 |
18.1.1 | 941 | 8/5/2021 |
18.1.0 | 1,044 | 8/1/2021 |
18.0.1 | 1,009 | 7/30/2021 |
18.0.0 | 990 | 7/26/2021 |
17.0.8 | 1,007 | 7/7/2021 |
17.0.7 | 1,028 | 6/16/2021 |
17.0.6 | 1,044 | 6/5/2021 |
17.0.5 | 1,030 | 5/28/2021 |
17.0.4 | 1,057 | 5/4/2021 |
17.0.3 | 1,027 | 5/1/2021 |
17.0.2 | 1,256 | 4/22/2021 |
17.0.1 | 968 | 4/18/2021 |
17.0.0 | 1,054 | 3/26/2021 |
16.5.6 | 992 | 3/25/2021 |
16.5.5 | 1,009 | 3/23/2021 |
16.5.4 | 1,013 | 3/9/2021 |
16.5.3 | 1,067 | 2/26/2021 |
16.5.2 | 1,062 | 2/23/2021 |
16.5.1 | 1,078 | 2/21/2021 |
16.5.0 | 1,027 | 2/17/2021 |
16.4.5 | 1,042 | 2/15/2021 |
16.4.4 | 1,053 | 2/5/2021 |
16.4.3 | 1,196 | 1/27/2021 |
16.4.2 | 1,178 | 1/22/2021 |
16.4.1 | 1,136 | 1/21/2021 |
16.4.0 | 1,170 | 1/11/2021 |
16.3.3 | 1,195 | 1/8/2021 |
16.3.2 | 1,113 | 1/3/2021 |
16.3.1 | 1,266 | 12/31/2020 |
16.3.0 | 1,197 | 12/30/2020 |
16.2.1 | 1,112 | 12/27/2020 |
16.2.0 | 2,864 | 10/13/2020 |
16.1.5 | 1,259 | 10/4/2020 |
16.1.4 | 1,213 | 9/17/2020 |
16.1.3 | 1,365 | 9/13/2020 |
16.1.2 | 1,307 | 9/9/2020 |
16.1.1 | 1,759 | 9/3/2020 |
16.1.0 | 1,304 | 8/19/2020 |
16.0.3 | 1,391 | 8/15/2020 |
16.0.2 | 9,830 | 8/9/2020 |
16.0.1 | 1,352 | 8/8/2020 |
16.0.0 | 1,306 | 8/7/2020 |
15.3.0 | 1,426 | 7/23/2020 |
15.2.3 | 1,337 | 7/14/2020 |
15.2.2 | 1,719 | 5/19/2020 |
15.2.1 | 1,302 | 5/12/2020 |
15.2.0 | 1,247 | 5/9/2020 |
15.1.1 | 1,313 | 5/4/2020 |
15.1.0 | 2,129 | 4/13/2020 |
15.0.5 | 1,239 | 3/18/2020 |
15.0.4 | 1,540 | 2/28/2020 |
15.0.3 | 1,339 | 2/26/2020 |
15.0.2 | 1,462 | 1/20/2020 |
15.0.1 | 1,388 | 1/10/2020 |
15.0.0 | 1,821 | 12/17/2019 |
14.9.1 | 1,360 | 11/30/2019 |
14.9.0 | 1,354 | 11/29/2019 |
14.8.1 | 1,281 | 11/26/2019 |
14.8.0 | 1,341 | 11/20/2019 |
14.7.0 | 1,475 | 10/9/2019 |
14.6.6 | 1,391 | 10/8/2019 |
14.6.5 | 1,374 | 9/27/2019 |
14.6.4 | 1,378 | 9/21/2019 |
14.6.3 | 1,470 | 8/12/2019 |
14.6.2 | 1,360 | 8/3/2019 |
14.6.1 | 1,352 | 8/3/2019 |
14.6.0 | 1,359 | 7/26/2019 |
14.5.7 | 1,376 | 7/18/2019 |
14.5.6 | 1,426 | 7/10/2019 |
14.5.5 | 1,319 | 7/1/2019 |
14.5.4 | 1,313 | 6/17/2019 |
14.5.3 | 1,335 | 6/5/2019 |
14.5.2 | 1,357 | 5/30/2019 |
14.5.1 | 1,302 | 5/28/2019 |
14.5.0 | 1,416 | 5/24/2019 |
14.4.0 | 1,449 | 5/22/2019 |
14.3.4 | 1,329 | 5/14/2019 |
14.3.3 | 1,359 | 5/9/2019 |
14.3.2 | 1,463 | 4/30/2019 |
14.3.1 | 1,438 | 4/27/2019 |
14.3.0 | 1,332 | 4/24/2019 |
14.2.3 | 1,468 | 4/17/2019 |
14.2.2 | 1,464 | 4/10/2019 |
14.2.1 | 1,479 | 4/5/2019 |
14.2.0 | 2,039 | 3/16/2019 |
14.1.1 | 1,445 | 3/8/2019 |
14.1.0 | 1,657 | 2/11/2019 |
14.0.4 | 1,558 | 1/31/2019 |
14.0.3 | 1,511 | 1/22/2019 |
14.0.2 | 1,725 | 12/15/2018 |
14.0.1 | 1,595 | 11/29/2018 |
14.0.0 | 1,577 | 11/19/2018 |
13.3.0 | 1,542 | 11/16/2018 |
13.2.2 | 2,667 | 11/15/2018 |
13.2.1 | 1,597 | 11/13/2018 |
13.2.0 | 1,618 | 10/31/2018 |
13.1.5 | 1,603 | 10/31/2018 |
13.1.4 | 1,619 | 10/25/2018 |
13.1.3 | 1,815 | 10/18/2018 |
13.1.2 | 1,753 | 9/12/2018 |
13.1.1 | 1,606 | 9/11/2018 |
13.1.0 | 1,697 | 9/11/2018 |
13.0.0 | 1,619 | 8/29/2018 |
12.3.6 | 1,638 | 8/29/2018 |
12.3.5 | 1,700 | 8/22/2018 |
12.3.4 | 1,633 | 8/21/2018 |
12.3.3 | 26,451 | 8/21/2018 |
12.3.2 | 1,705 | 8/20/2018 |
12.3.1 | 1,763 | 8/20/2018 |
12.3.0 | 1,622 | 8/20/2018 |
12.2.2 | 1,691 | 8/15/2018 |
12.2.1 | 1,741 | 8/9/2018 |
12.2.0 | 1,681 | 8/8/2018 |
12.1.11 | 1,659 | 7/30/2018 |
12.1.10 | 1,635 | 7/20/2018 |
12.1.9 | 1,784 | 7/10/2018 |
12.1.8 | 1,768 | 7/2/2018 |
12.1.7 | 1,834 | 6/7/2018 |
12.1.6 | 1,731 | 6/4/2018 |
12.1.5 | 1,844 | 6/2/2018 |
12.1.4 | 1,921 | 5/25/2018 |
12.1.3 | 1,974 | 5/16/2018 |
12.1.2 | 1,890 | 5/15/2018 |
12.1.1 | 1,862 | 5/14/2018 |
12.1.0 | 1,884 | 5/9/2018 |
12.0.7 | 2,020 | 5/5/2018 |
12.0.6 | 1,979 | 5/4/2018 |
12.0.5 | 1,861 | 5/3/2018 |
12.0.4 | 1,937 | 4/30/2018 |
12.0.3 | 1,998 | 4/30/2018 |
12.0.2 | 1,888 | 4/27/2018 |
12.0.1 | 1,956 | 4/25/2018 |
12.0.0 | 1,824 | 4/22/2018 |
11.2.0 | 2,201 | 4/11/2018 |
11.1.0 | 1,890 | 4/8/2018 |
11.0.8 | 1,979 | 3/26/2018 |
11.0.7 | 1,939 | 3/20/2018 |
11.0.6 | 1,963 | 3/7/2018 |
11.0.5 | 1,865 | 2/22/2018 |
11.0.4 | 1,886 | 2/14/2018 |
11.0.3 | 1,885 | 2/12/2018 |
11.0.2 | 1,850 | 2/9/2018 |
11.0.1 | 1,852 | 1/29/2018 |
11.0.0 | 1,774 | 1/15/2018 |
10.0.3 | 1,864 | 12/29/2017 |
10.0.2 | 1,741 | 12/26/2017 |