Nano.Logging.Log4Net 10.0.0-preview1

This is a prerelease version of Nano.Logging.Log4Net.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Nano.Logging.Log4Net --version 10.0.0-preview1
                    
NuGet\Install-Package Nano.Logging.Log4Net -Version 10.0.0-preview1
                    
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="Nano.Logging.Log4Net" Version="10.0.0-preview1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Nano.Logging.Log4Net" Version="10.0.0-preview1" />
                    
Directory.Packages.props
<PackageReference Include="Nano.Logging.Log4Net" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Nano.Logging.Log4Net --version 10.0.0-preview1
                    
#r "nuget: Nano.Logging.Log4Net, 10.0.0-preview1"
                    
#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.
#:package Nano.Logging.Log4Net@10.0.0-preview1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Nano.Logging.Log4Net&version=10.0.0-preview1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Nano.Logging.Log4Net&version=10.0.0-preview1&prerelease
                    
Install as a Cake Tool

Nano.Logging.Log4Net

Build and Deploy NuGet NuGet

Log4Net logging for Nano applications.


Table of Contents

Summary

This package provides the Log4Net logging provider for Nano.
The provider is preconfigured to write log output to the console using a concise format:

%utcdate{dd-MM-yyyy HH:mm:ss.ffffff} [%level{3}] %message%newline%exception

📖 Learn more about Nano Logging.

Try it out yourself using the Api.Logging.Log4Net or Console.Logging.Log4Net example.

Registration

Install the Nano.Logging.Log4Net NuGet package.

dotnet add package Nano.Logging.Log4Net;

Register the Log4NetProvider provider during application startup in the ConfigureServices(...) method.

...
.ConfigureServices(services =>
{
    services
        .AddNanoLogging<Log4NetProvider>();
})
...
Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Nano.Logging.Log4Net:

Package Downloads
Nano.All

This package is part of the Nano Library, a set of reusable .NET libraries for building microservice applications. Nano addresses common non-business concerns such as logging, persistence, messaging, validation, and documentation, while remaining fully configurable and extensible, so applications can stay focused on business logic. See https://github.com/Nano-Core/Nano.Library for details.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
10.0.0-preview2 69 4/25/2026
10.0.0-preview1 73 4/24/2026

- .NET 10 support.
- Comprehensive rewrite with performance optimizations, improvements, and bug fixes.
- Not compatible with previous versions of Nano.