DotLogs.AspNet 1.0.6

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

DotLogs.AspNet (ASP.NET Core integration)

Optional controller that exposes runtime logging management over HTTP.

Install

dotnet add package DotLogs
dotnet add package DotLogs.AspNet

Setup

using DotLogs;

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddSingleton<DotLogsService>();
builder.Services.AddControllers();

var app = builder.Build();

app.MapControllers();
app.Run();

This registers DotLogsController at route base api/DotLogs.

Endpoints

Configuration and control:

  • POST /api/DotLogs/enable — enable console and file logging
  • POST /api/DotLogs/disable — disable console and file logging
  • POST /api/DotLogs/enable-console — enable console logging
  • POST /api/DotLogs/disable-console — disable console logging
  • POST /api/DotLogs/enable-file — enable file logging
  • POST /api/DotLogs/disable-file — disable file logging
  • POST /api/DotLogs/level?level=Debug — set minimum log level
  • GET /api/DotLogs/status — get current configuration

Log retrieval:

  • GET /api/DotLogs/logs — get logs from last 24 hours
  • GET /api/DotLogs/logs?from={datetime} — get logs from specific date/time

Examples

# Set log level
curl -X POST "http://localhost:5000/api/DotLogs/level?level=Trace"

# Disable console logging
curl -X POST "http://localhost:5000/api/DotLogs/disable-console"

# Get current status
curl -X GET "http://localhost:5000/api/DotLogs/status"

# Get logs from last 24 hours
curl -X GET "http://localhost:5000/api/DotLogs/logs"

# Get logs from specific date
curl -X GET "http://localhost:5000/api/DotLogs/logs?from=2025-09-01T00:00:00Z"
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.

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.6 275 9/26/2025
1.0.5 181 9/26/2025
1.0.4 196 9/25/2025
1.0.3 363 9/16/2025
1.0.2 331 9/16/2025
1.0.1 331 9/16/2025