log4net.async.extension 1.0.0

.NET Core 1.0 .NET Standard 2.0 .NET Framework 2.0
dotnet add package log4net.async.extension --version 1.0.0
NuGet\Install-Package log4net.async.extension -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="log4net.async.extension" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add log4net.async.extension --version 1.0.0
#r "nuget: log4net.async.extension, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install log4net.async.extension as a Cake Addin
#addin nuget:?package=log4net.async.extension&version=1.0.0

// Install log4net.async.extension as a Cake Tool
#tool nuget:?package=log4net.async.extension&version=1.0.0


log4net async extension is an async execution extension for ILog and ILogger implementations.


A package is available at nuget.org


The primary repo for the project is on GitHub and this is where the wiki and issues are managed from.


All original software is licensed under the LGPL-3 Licence. This does not apply to any other 3rd party tools, utilities or code which may be used to develop this application.

If anyone is aware of any licence violations that this code may be making please inform the developers so that the issue can be investigated and rectified.


You will need:

  1. Visual Studio VS2017 (Community Edition) or later
  2. Official log4net nuget package
  3. Target Framework packs:
    • netstandard1.0
    • netstandard1.3
    • netstandard2.0
    • netcoreapp1.0
    • netcoreapp2.0
    • net20
    • net35
    • net40
    • net45
    • net46
    • net47


Using an async logger is only a good idea if you know exactly that you need it.

We use async loggers in high priority threads needing to wait for long periods of time and then generating thousands of log events in a very short working time. Since the short working time period shall not wait until the backend has time for it an async logger is used.

Please keep in mind that the log backend may no longer receive all events in the correct order (async log events will be late, but will be in order when only viewing the async events).

A common log result may look like:

00:00:01 sync event 1
00:00:01 async event 1
00:00:02 async event 2
00:00:02 sync event 2
00:00:03 sync event 3
00:00:04 sync event 4
00:00:03 async event 3
00:00:05 sync event 5
00:00:04 async event 4
00:00:05 async event 5

First use

You can simply convert any ILog and ILogger implementation using the AsAsync() extension method. With compilers not supporting extension methods, please use LoggerAsync.AsAsync(ILogger) and LoggerAsync.AsAsync(ILog).

This is how you get an async logger:

using log4net;

static ILog log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType).AsAsync();
Product 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. 
.NET Core netcoreapp1.0 is compatible.  netcoreapp1.1 was computed.  netcoreapp2.0 is compatible.  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 net20 is compatible.  net35 is compatible.  net40 is compatible.  net403 was computed.  net45 is compatible.  net451 was computed.  net452 was computed.  net46 is compatible.  net461 was computed.  net462 was computed.  net463 was computed.  net47 is compatible.  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. 
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

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
1.0.0 670 9/30/2018