LumiLogger 1.2.0

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

LumiLog ✨

Beautiful HTML execution logger for .NET & ASP.NET Core with structured logging and real-time search.


☕ Support & Connect

If you find LumiLog helpful, please consider supporting the project:


LumiLog automatically generates interactive HTML logs for:

  • Controller actions
  • Service methods
  • Background jobs
  • Manual execution scopes
  • Structured data logging with properties

Perfect for debugging, monitoring, and development visibility.


🚀 Installation

dotnet add package LumiLogger

⚙️ Basic Setup (ASP.NET Core)

In Program.cs:

using LumiLog.Extensions;

builder.Services.AddLumiLogger(options =>
{
    options.Theme = Theme.dark;  // light, dark, pink, blue, red, purple, grey, orange
    options.LogFolder = "logs";
});

// Option 1: With MVC Action Filter
builder.Services.AddLumiLoggerWithMvc();

// Option 2: With Microsoft.Extensions.Logging integration
builder.Logging.AddLumiLog(Microsoft.Extensions.Logging.LogLevel.Information);

🏷️ Attribute-Based Logging

[HttpPost("send-otp")]
[LumiLog]
public async Task<IActionResult> SendOtp(string phone)
{
    return Ok("OTP sent");
}

📝 Manual Execution Logging

// Using Execute
_logger.Execute("ProcessOrder", () =>
{
    _logger.Log("Validating order...");
    _logger.Log("Processing payment...");
});

// Using ExecuteAsync
await _logger.ExecuteAsync("FetchData", async () =>
{
    _logger.Log("Fetching from API...");
    await Task.Delay(1000);
});

📊 Structured Logging (New!)

Log complex data with properties that render as collapsible JSON:

_logger.LogStructured("OrderCreated", new Dictionary<string, object?>
{
    { "OrderId", 12345 },
    { "Amount", 99.99 },
    { "Customer", "John Doe" },
    { "Items", new[] { "Item1", "Item2" } }
}, LogLevel.Information);

// With different log levels
_logger.LogStructured("Payment Failed", new Dictionary<string, object?>
{
    { "PaymentId", 456 },
    { "Reason", "Insufficient funds" }
}, LogLevel.Error);

🔍 Client-Side Search & Filter

  • Real-time search by method name, status, time, or log content
  • Search box automatically filters all execution logs
  • "No results" message when nothing matches

📄 Microsoft.Extensions.Logging Integration (New!)

Use LumiLog as a sink for Microsoft's standard logging:

var logger = serviceProvider.GetRequiredService<ILogger<MyClass>>();

logger.LogInformation("User logged in", new { UserId = 123, Timestamp = DateTime.Now });
logger.LogError(ex, "Payment processing failed");
logger.LogWarning("Low inventory detected");

📂 Log Output

Logs are saved as HTML files in:

<ProjectRoot>/logs/YYYY-MM-DD.html

Each day creates a new log file. Each request/execution creates an interactive card with:

  • Execution time
  • Success/Failure status
  • Internal logs
  • Exception details
  • Structured data (collapsible JSON)

💡 Key Features

✅ Zero configuration required
✅ Beautiful HTML output with multiple themes
✅ Attribute-based or manual logging
✅ Structured logging with JSON rendering
✅ Client-side search & filtering
✅ Microsoft.Extensions.Logging integration
✅ Full .NET 8 & .NET 10 support
✅ No external dependencies


📄 License

MIT License

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 was computed.  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

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.2.0 103 3/6/2026
1.0.2 53 3/3/2026
1.0.1 58 3/3/2026
1.0.0 58 3/3/2026