Crowley.LoadIQLogger 1.0.1

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

Crowley.LoadIQLogger

A logging service library for .NET applications, providing structured logging capabilities using NLog.

Description

This NuGet package provides a logging helper service that wraps NLog functionality, offering structured logging with support for:

  • Error Logging - Exception and error logging with structured data
  • Information Logging - General information logging with formatted messages
  • Event Logging - Custom event log entries with property-based data
  • Structured Data - Log entries with UserId, EventId, and custom properties

Installation

Install the package via NuGet Package Manager:

dotnet add package Crowley.LoadIQLogger

Or via Package Manager Console:

Install-Package Crowley.LoadIQLogger

Target Framework

  • .NET 9.0

Dependencies

This package includes the following dependencies:

  • NLog (4.7.15)

Usage

Basic Usage

using LoggerService;
using NLog;

// Initialize logger
var logger = LogManager.GetCurrentClassLogger();
var loggerHelper = new LoggerHelper(logger);

// Log information
var loggerEntity = new LoggerEntity
{
    UserId = "user123",
    EventId = "EVT001",
    Message = "User logged in successfully"
};
loggerHelper.Information(loggerEntity);

// Log errors
try
{
    // Your code here
}
catch (Exception ex)
{
    loggerHelper.Error(loggerEntity, ex);
}

// Log events
var eventLog = new EventLogEntity
{
    // Set your event properties
};
loggerHelper.WriteEventLog(eventLog);

Author

Vikram Sankar

License

This project is licensed under the MIT License - see the LICENSE file for details.

Product Compatible and additional computed target framework versions.
.NET 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net9.0

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Crowley.LoadIQLogger:

Package Downloads
Crowley.LoadIQCommon

A comprehensive common utilities library for LogiB applications, providing authentication, conversion, cryptography, email, Firebase notifications, PDF generation, SMS, and database connectivity helpers.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 594 12/10/2025
1.0.0 398 12/8/2025