ZibStack.NET.Log 3.2.1

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

ZibStack.NET.Log

Compile-time logging utilities for .NET 8+ using C# interceptors.

Two features

Feature What it does Requires
[Log] attribute Structured entry/exit/error logging on methods ZibStack.NET.Aop (handles generation)
Interpolated string interception Rewrites logger.LogInformation($"...") into zero-allocation LoggerMessage.Define This package alone

Install

dotnet add package ZibStack.NET.Aop   # [Log] attribute + Apply<LogAttribute>
dotnet add package ZibStack.NET.Log   # interpolated-string optimization (optional)

[Log] attribute (via ZibStack.NET.Aop)

public class OrderService
{
    [Log]
    public Order PlaceOrder(int customerId, string product, int quantity)
    {
        return _repo.Create(customerId, product, quantity);
    }
}

// Output:
// info: OrderService Entering PlaceOrder(customerId: 42, product: Widget, quantity: 3)
// info: OrderService Exited PlaceOrder in 53ms -> Order { Id = 7 }

Or apply globally without any attributes:

public sealed class AopConfig : IAopConfigurator
{
    public void Configure(IAopBuilder b)
    {
        b.Apply<LogAttribute>(to => to
            .Namespace("MyApp.Services")
            .PublicMethods()
        );
    }
}

Interpolated-string logging (this package)

// Before (allocates string + params array every call):
logger.LogInformation($"Processing order {orderId} for customer {name}");

// After (rewritten at compile time to LoggerMessage.Define — zero allocation):
// Same source code, zero changes needed. Just install ZibStack.NET.Log.

Documentation

Full documentation: mistykuu.github.io/ZibStack.NET/packages/log/

There are no supported framework assets in this 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
3.2.7 121 6/13/2026
3.2.6 115 6/11/2026
3.2.5 107 6/10/2026
3.2.4 117 4/21/2026
3.2.3 111 4/21/2026
3.2.2 100 4/21/2026
3.2.1 104 4/21/2026
3.2.0 101 4/21/2026
3.1.5 100 4/20/2026
3.1.4 107 4/20/2026
3.1.3 111 4/20/2026
3.1.2 113 4/20/2026
3.1.1 101 4/20/2026
3.1.0 106 4/20/2026
3.0.6 104 4/20/2026
3.0.5 106 4/20/2026
3.0.4 99 4/20/2026
3.0.3 95 4/20/2026
3.0.2 104 4/20/2026
3.0.1 106 4/20/2026
Loading failed