Camatsoft.TraceLog.AspNet 1.1.1

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

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

Description

Enhance Your ASP.NET Logging with CamatSoft.TraceLog.AspNet

CamatSoft.TraceLog.AspNet builds on the foundation of CamatSoft.TraceLog, offering seamless integration with ASP.NET . 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.
  • Detailed request tracing : Gain valuable insights into your API's behavior for better diagnostics and performance tuning.

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

TraceLog SDK for .NET by CamatSoft

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

DSN

Register on CamatSoft.TraceLog

DSN Test

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

Extend

HttpApplication.UseTraceLog(string dsn)
HttpApplication.UseTraceLog(Action<TraceLogOptions> options)

Exemples

in Global.asax.cs (EntryPoint) :

protected void Application_Start()
{
    ...
    this.UseTraceLog(options =>
    {
        options.Dsn = dsn;
        options.UseFileIO = true;
        options.ConfigureScope(scope =>
        {
            scope.SetTag("DT", DateTime.Now.ToString("yyyyMMdd_HHmmss"));
        });
    });
}

protected void Application_Error(object sender, EventArgs e)
{
    ...
    Exception exception = this.Server.GetLastError();
    TraceLogLoggerBuilder.TraceLogLogger.Log(DiagnosticLevel.Error, exception.GetType(), exception, this.Context);
}

in another file .cs :

public ActionResult Index()
{
    string s = "tot";
    bool b = bool.Parse(s);
}
Product Compatible and additional computed target framework versions.
.NET Framework net46 is compatible.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 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.1.1 39 11/27/2024