CalsoftLogger.Web 1.0.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package CalsoftLogger.Web --version 1.0.3
                    
NuGet\Install-Package CalsoftLogger.Web -Version 1.0.3
                    
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="CalsoftLogger.Web" Version="1.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CalsoftLogger.Web" Version="1.0.3" />
                    
Directory.Packages.props
<PackageReference Include="CalsoftLogger.Web" />
                    
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 CalsoftLogger.Web --version 1.0.3
                    
#r "nuget: CalsoftLogger.Web, 1.0.3"
                    
#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 CalsoftLogger.Web@1.0.3
                    
#: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=CalsoftLogger.Web&version=1.0.3
                    
Install as a Cake Addin
#tool nuget:?package=CalsoftLogger.Web&version=1.0.3
                    
Install as a Cake Tool

CalsoftLogger.Web SDK

A modernized SDK-style version of the CalsoftLogger.Web project, providing Web API endpoints for the CalsoftLogger functionality.

Features

  • RESTful API endpoints for logging operations
  • ASP.NET Web API 2.x integration
  • Automatic model binding for complex log data
  • Built on modern SDK-style project format
  • Conditional package versioning based on target framework
  • Assembly binding conflict resolution - designed to avoid System.* assembly conflicts

API Endpoints

The Web API provides endpoints for:

  • Logging messages with different severity levels
  • Retrieving log entries
  • Filtering and sorting log data
  • Managing log configurations

Requirements

  • .NET Framework 4.5.2 or higher
  • IIS or IIS Express for hosting
  • SQL Server (for database logging backend)

Installation

From NuGet (if published)

Install-Package CalsoftLogger.Web

From Local Source

# Add local package source
dotnet nuget add source "path\to\CalsoftLogger.Web.Sdk\bin\Release" --name "LocalCalsoftLoggerWeb"

# Install the package
dotnet add package CalsoftLogger.Web --source "LocalCalsoftLoggerWeb"

Testing Installation

Use the included test script to verify the package installs without conflicts:

.\test-package.ps1

Assembly Binding Conflicts - Fixed!

This SDK package has been specifically designed to avoid assembly binding conflicts that can occur when installing SDK-style packages into traditional .NET Framework projects.

What was fixed:

  • Disabled implicit framework references that cause System.* conflicts
  • Added ExcludeAssets="runtime" to package dependencies
  • Included only necessary framework references
  • Prevented automatic binding redirect generation

If you still encounter conflicts:

The error message you showed should no longer occur with the updated package. If you still see binding redirect warnings:

  1. First try - Clean and rebuild your solution after installing the updated package
  2. If warnings persist - The warnings are likely harmless, but you can add the suggested binding redirects to your app.config or web.config if needed

Configuration

Configure the Web API through the standard Web.config file. The logging backend uses the same configuration as the core CalsoftLogger library.

Usage

Once deployed, the Web API exposes HTTP endpoints for logging operations:

POST /api/calsoftlogger/log
GET /api/calsoftlogger/logs
GET /api/calsoftlogger/logs?level=Error&from=2025-01-01

Dependencies

Package versions are automatically selected based on target framework:

For .NET Framework 4.5.2 - 4.6:

  • Microsoft.AspNet.Mvc 5.2.3
  • Microsoft.AspNet.WebApi 5.2.3
  • jQuery 1.10.2
  • bootstrap 3.0.0
  • Newtonsoft.Json 6.0.4

For .NET Framework 4.6.1+:

  • Microsoft.AspNet.Mvc 5.2.9
  • Microsoft.AspNet.WebApi 5.2.9
  • jQuery 3.7.0
  • bootstrap 5.2.3
  • Newtonsoft.Json 13.0.3

License

This project is licensed under the MIT License.

Product Compatible and additional computed target framework versions.
.NET Framework net452 is compatible.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
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.11 113 2/27/2026
1.0.10 96 2/27/2026
1.0.9 108 2/27/2026
1.0.8 110 2/27/2026
1.0.7 118 2/24/2026
1.0.6 130 1/7/2026
1.0.5 186 12/5/2025
1.0.4 174 12/5/2025
1.0.3 273 8/5/2025