NextGenSoftware.Logging.NLog 2.0.4

dotnet add package NextGenSoftware.Logging.NLog --version 2.0.4
                    
NuGet\Install-Package NextGenSoftware.Logging.NLog -Version 2.0.4
                    
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="NextGenSoftware.Logging.NLog" Version="2.0.4" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NextGenSoftware.Logging.NLog" Version="2.0.4" />
                    
Directory.Packages.props
<PackageReference Include="NextGenSoftware.Logging.NLog" />
                    
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 NextGenSoftware.Logging.NLog --version 2.0.4
                    
#r "nuget: NextGenSoftware.Logging.NLog, 2.0.4"
                    
#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 NextGenSoftware.Logging.NLog@2.0.4
                    
#: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=NextGenSoftware.Logging.NLog&version=2.0.4
                    
Install as a Cake Addin
#tool nuget:?package=NextGenSoftware.Logging.NLog&version=2.0.4
                    
Install as a Cake Tool

NextGenSoftware.Logging.NLog

Drop-in NLog integration for NextGenSoftware.Logging — route all OASIS/HoloNET log calls through NLog's full target, rule, and layout engine with a single registration call.

NuGet License: MIT .NET

Part of the OASIS Omniverse v2.0 Reboot. Visit oasisomniverse.one.


Features

  • Implements ILogProvider — one line to add NLog to any OASIS or HoloNET project
  • All NLog targets: file, database, Seq, Splunk, console, and 100+ community targets
  • Full NLog rules, layouts, filters, and structured logging
  • Runs alongside DefaultLogger and FileLogger simultaneously
  • Multi-target: .NET 8, .NET 9, .NET 10

Installation

dotnet add package NextGenSoftware.Logging.NLog

Quick Start

using NextGenSoftware.Logging;
using NextGenSoftware.Logging.NLog;

var logger = new Logger();
logger.RegisterProvider(new DefaultLogger());  // keep console output
logger.RegisterProvider(new NLogProvider());   // add full NLog routing

logger.Log("Starting up...", LogType.Info);
logger.Log("Something failed!", LogType.Error);

Configure NLog via NLog.config or programmatically as normal.


NLog.config Example

<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd">
  <targets>
    <target name="file" xsi:type="File" fileName="logs/${shortdate}.log"
            layout="${longdate} ${level} ${message}" />
  </targets>
  <rules>
    <logger name="*" minlevel="Info" writeTo="file" />
  </rules>
</nlog>

MIT — Copyright (c) NextGen Software Ltd 2019 - 2026

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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 is compatible.  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 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 NextGenSoftware.Logging.NLog:

Package Downloads
NextGenSoftware.OASIS.OASISBootLoader

The OASIS BootLoader provides a single entry point to initialise the entire OASIS ecosystem in any .NET application. Reads OASISDNA configuration, registers and activates all configured providers, sets up Auto-FailOver/LoadBalancing, and returns a ready-to-use OASIS instance. Integrate 55+ decentralised networks into your app with just a few lines of code. Part of the OASIS Omniverse at https://oasisomniverse.one

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.4 235 10/16/2026
2.0.3 423 7/14/2026
2.0.2 142 7/14/2026
2.0.1 152 7/14/2026
2.0.0 710 5/26/2024
1.1.0 552 5/22/2023
1.0.1 610 12/28/2022
1.0.0 808 8/26/2022

## v2.0.4

- NextGenSoftware.Logging: file logging no longer slows down as log files accumulate (it listed and checked every file in the log folder on every line, so apps that log a lot - like HoloNET, which logs on its WebSocket thread - timed out); writes are serialised in-process; only MaxLogFiles (default 50) log files are kept. Faulty log providers can't break logging (snapshot of providers).
- NextGenSoftware.WebSocket: the receive loop runs on the thread pool (it inherited the caller's SynchronizationContext, so WPF/WinForms apps handled every message on the UI thread and froze on any blocking call); TrySendRawDataAsync reports send failures instead of throwing.
- All NextGenSoftware libraries bumped to 2.0.4 together.

---

## v2.0.1 — OASIS Omniverse Reboot (2026)

Part of the biggest NextGen Software release in years! The full OASIS Omniverse ecosystem — powering Our World, the OASIS API (85+ NuGet packages), HoloNET (Holochain .NET client), STAR ODK, and more — has been fully relaunched and rebranded at https://oasisomniverse.one/

After years of continuous development this is the first major v2 release, representing a complete overhaul and modernisation of the entire NextGen Software foundation.

### What's New in v2.0.1
- Added .NET 10 support: now multi-targeting net8.0, net9.0, and net10.0 for future-proof compatibility
- Copyright updated: NextGen Software Ltd 2019 - 2026
- Part of the unified OASIS Omniverse ecosystem at https://oasisomniverse.one/
- Significantly improved error handling, robustness, and API consistency
- Full alignment with the new OASIS Omniverse architecture (WEB4 through WEB10 API tiers)
- All packages updated with correct metadata, repository URLs, and project URLs
- Multiple bug fixes and stability improvements
- Open source under MIT licence -- https://github.com/NextGenSoftwareUK/NextGenSoftware-Libraries