Camatsoft.TraceLog.AspNet 1.1.2

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

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 Documentation
CamatSoft.TraceLog.AspNet nuget documentation

DSN

Register on CamatSoft.TraceLog (https://tracelog.camatsoft.com)

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.SetExtra("MyExtra", "MyValue");
            scope.SetTag("MyTag", "MyValue");
        });
    });
}

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.2 159 12/17/2024
1.1.1 145 11/27/2024

# Release Notes

## v1.1.2
- Add Request.Browser
- Add Request.ServerVariables
- Add Request.Params
- Add Request.ClientOS

## v1.1.1
- Use CamatSoft.TraceLog

## v1.0.0
- Initial Release: The first release of the project with core functionality.