MasterX.Logging.Aspect 3.1.2-preview.801

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

MasterX.Logging.Aspect

Optional compile-time method logging instrumentation. Apply [MasterXLog] to a class or method to log method entry, successful completion, and exceptions through Microsoft.Extensions.Logging.

Usage

using MasterX.Logging.Aspect.Attributes;
using MasterX.Logging.Aspect.DependencyInjection;

WebApplicationBuilder builder = WebApplication.CreateBuilder(args);
builder.AddMasterXLoggingAspect();

[MasterXLog]
public sealed class ExampleService
{
    public int Double(int value) => value * 2;
}

The aspect is provider-neutral; configure Serilog, NLog, OpenTelemetry, or another ILogger provider separately. Instrumentation is woven at build time, while these options control whether the aspect emits logs at runtime:

{
  "MasterX": {
    "Logging": {
      "Aspect": {
        "Enabled": true,
        "LogMethodEntry": true,
        "LogMethodExit": true,
        "LogExceptions": true,
        "MethodLogLevel": "Trace"
      }
    }
  }
}

The aspect supports synchronous methods and methods returning Task, Task<T>, ValueTask, or ValueTask<T>. IAsyncEnumerable<T> and custom awaitables are not instrumented.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on MasterX.Logging.Aspect:

Package Downloads
MasterX.Logging

Configuration-driven logging provider orchestration for MasterX applications.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.1.2-preview.801 57 11/23/2026
3.1.1 67 11/23/2026
3.1.1-preview.797 65 11/20/2026
3.1.0 106 11/18/2026
3.1.0-preview.793 64 11/19/2026
3.1.0-preview.789 71 11/17/2026
3.1.0-preview.782 70 11/17/2026
3.0.9-preview.774 61 11/10/2026
3.0.9-preview.772 73 11/10/2026
3.0.8 115 11/9/2026
3.0.8-preview.767 68 11/9/2026
3.0.8-preview.765 63 11/9/2026
3.0.8-preview.763 64 11/9/2026
3.0.8-preview.761 67 11/8/2026
3.0.7-preview.759 71 11/7/2026