Camatsoft.TraceLog.NetCore 3.2.7

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

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

Description

Simplify Your Logging with CamatSoft.TraceLog.NetCore

CamatSoft.TraceLog.NetCore is a lightweight and extensible tracing solution designed to streamline logging in your .NET projects. It offers:

  • Simple configuration : Get started with just a few lines of code.
  • Multi-destination support : Log to the console, files, or third-party services like Serilog or Elastic Stack.
  • Robust extensibility : Tailor the package to your specific needs with custom hook systems.
  • Optimized performance : Minimal impact on your application’s performance.

Adopt CamatSoft.TraceLog.NetCore and take full control of your logging, de facto.

TraceLog SDK for .NET by CamatSoft

Integrations NuGet Version Documentation
CamatSoft.TraceLog.NetCore nuget documentation

DSN

Register on CamatSoft.TraceLog.NetCore

DSN Test

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

Constructor

Camatsoft.TraceLog.NetCore.Sdk.Init()
Camatsoft.TraceLog.NetCore.Sdk.Init(string dsn)
Camatsoft.TraceLog.NetCore.Sdk.Init(string dsn, Action<Scope> scope)
Camatsoft.TraceLog.NetCore.Sdk.Init(TraceLogOptions options)
Camatsoft.TraceLog.NetCore.Sdk.Init(Action<TraceLogOptions> options)

Methods

Name Params Description
CaptureExecption(Exception ex) ex is Exception Capture exception
CaptureExceptionResponseDto CaptureExecption(Exception ex, Action<Scope> scope) ex is Exception, scope is Action contains a scope Capture exception
CaptureMessage(string message) message is a message log CaptureMessage
CaptureMessage(string message, DiagnosticLevel level) message is a message log, level is a level type of log CaptureMessage
CaptureMessage(string message, DiagnosticLevel level, Action<Scope> scope) message is a message log, level is a level type of log, scope is Action contains a scope CaptureMessage

Exemples

in Program.cs (EntryPoint) :

Sdk.Init(options => { 
    options.dsn = "https://azerty@o0000.tracelog.camatsoft.com/999999";
    options.ConfigureScope(scope =>
    {
        scope.SetTag("MyTag", "MyValue");
    });
});

in another file .cs :

try
{
    string s = "tot";
    bool b = bool.Parse(s);
}
catch (Exception ex)
{
    CaptureExceptionResponseDto captureResponseDto = Sdk.CaptureExecption(ex, scope =>
    {
        scope.SetTag("UserName", "Georges");
    });
}
Product Compatible and additional computed target framework versions.
.NET 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. 
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 Camatsoft.TraceLog.NetCore:

Package Downloads
Camatsoft.TraceLog.AspNetCore

Official Extends SDK TraceLog for ASP.Net 8 Logging and tracing reporting with fully-structured, events that helps developers monitor and fix crashes in real time.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.2.7 46 11/22/2024
3.2.6 44 11/21/2024
3.2.5 40 11/20/2024

Add SdkVersionMapper