CalsoftLogger.Web
1.0.3
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
<PackageReference Include="CalsoftLogger.Web" Version="1.0.3" />
<PackageVersion Include="CalsoftLogger.Web" Version="1.0.3" />
<PackageReference Include="CalsoftLogger.Web" />
paket add CalsoftLogger.Web --version 1.0.3
#r "nuget: CalsoftLogger.Web, 1.0.3"
#:package CalsoftLogger.Web@1.0.3
#addin nuget:?package=CalsoftLogger.Web&version=1.0.3
#tool nuget:?package=CalsoftLogger.Web&version=1.0.3
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:
- First try - Clean and rebuild your solution after installing the updated package
- If warnings persist - The warnings are likely harmless, but you can add the suggested binding redirects to your
app.configorweb.configif 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 | Versions 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. |
-
.NETFramework 4.5.2
- CalsoftLogger (>= 1.0.3)
- Microsoft.AspNet.Mvc (>= 5.2.9)
- Microsoft.AspNet.WebApi (>= 5.2.9)
- Microsoft.AspNet.WebApi.Client (>= 5.2.9)
- Microsoft.AspNet.WebApi.Core (>= 5.2.9)
- Microsoft.AspNet.WebApi.WebHost (>= 5.2.9)
- Microsoft.Web.Infrastructure (>= 2.0.0)
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.