Camatsoft.TraceLog.AspNetCore 4.1.1

Prefix Reserved
dotnet add package Camatsoft.TraceLog.AspNetCore --version 4.1.1                
NuGet\Install-Package Camatsoft.TraceLog.AspNetCore -Version 4.1.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="Camatsoft.TraceLog.AspNetCore" Version="4.1.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Camatsoft.TraceLog.AspNetCore --version 4.1.1                
#r "nuget: Camatsoft.TraceLog.AspNetCore, 4.1.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.
// Install Camatsoft.TraceLog.AspNetCore as a Cake Addin
#addin nuget:?package=Camatsoft.TraceLog.AspNetCore&version=4.1.1

// Install Camatsoft.TraceLog.AspNetCore as a Cake Tool
#tool nuget:?package=Camatsoft.TraceLog.AspNetCore&version=4.1.1                

Description

Enhance Your ASP.NET Core Logging with CamatSoft.TraceLog.AspNetCore

CamatSoft.TraceLog.AspNetCore builds on the foundation of CamatSoft.TraceLog, offering seamless integration with ASP.NET Core. This advanced layer provides:

  • Out-of-the-box middleware support : Effortlessly capture HTTP requests, responses, and exceptions.
  • Customizable logging filters : Tailor what gets logged based on endpoints, status codes, or user roles.
  • Integrated dependency injection : Simplifies configuration and service registration in your ASP.NET Core pipeline.
  • Detailed request tracing : Gain valuable insights into your API's behavior for better diagnostics and performance tuning.

Streamline your ASP.NET Core logging experience with CamatSoft.TraceLog.AspNetCore, ensuring robust and transparent application monitoring, in fine.

TraceLog SDK for .NET by CamatSoft

Integrations NuGet Version NuGet Preview Documentation
CamatSoft.TraceLog.AspNetCore nuget nuget documentation

DSN

Register on CamatSoft.TraceLog

DSN Test

https://pRGLY9uhyKPu4b44s3Pe6a6pk46NBbRz4b2E2RMpb648h8DR2N7K7qsb97XFYM2r@o20241101.tracelog.camatsoft.com/2024111101
Please use UseFileIO = true;

Extend

((WebApplicationBuilder)builder).WebHost.UseTraceLog(string dsn)
((WebApplicationBuilder)builder).WebHost.UseTraceLog(Action<TraceLogOptions> options)

Exemples

in Program.cs (EntryPoint) :

builder.WebHost.UseTraceLog(options => {  
    options.Dsn = "https://azerty@o0000.tracelog.camatsoft.com/999999";
    options.UseFileIO = true;
    options.ConfigureScope(scope =>
    {
        scope.SetTag("MyTag", "MyValue");
    });
});

in another file .cs :

public async Task<ActionResult> GetError500()
{
    string s = "tot";
    bool b = bool.Parse(s);
    string version = "Error test";
    return Ok(version);
}
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  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 is compatible. 
.NET Core netcoreapp3.0 is compatible.  netcoreapp3.1 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
4.1.1 45 11/27/2024
3.2.1 65 11/22/2024