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
<PackageReference Include="Camatsoft.TraceLog.NetCore" Version="3.2.7" />
paket add Camatsoft.TraceLog.NetCore --version 3.2.7
#r "nuget: Camatsoft.TraceLog.NetCore, 3.2.7"
// 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 |
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 | Versions 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. |
-
net8.0
- Camatsoft.TraceLog.NetCore.Contract (>= 3.2.5)
- Camatsoft.TraceLog.NetCore.Data (>= 1.0.0)
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.
Add SdkVersionMapper