Camatsoft.TraceLog
4.1.1
Prefix Reserved
dotnet add package Camatsoft.TraceLog --version 4.1.1
NuGet\Install-Package Camatsoft.TraceLog -Version 4.1.1
<PackageReference Include="Camatsoft.TraceLog" Version="4.1.1" />
paket add Camatsoft.TraceLog --version 4.1.1
#r "nuget: Camatsoft.TraceLog, 4.1.1"
// Install Camatsoft.TraceLog as a Cake Addin #addin nuget:?package=Camatsoft.TraceLog&version=4.1.1 // Install Camatsoft.TraceLog as a Cake Tool #tool nuget:?package=Camatsoft.TraceLog&version=4.1.1
Description
Simplify Your Logging with CamatSoft.TraceLog
CamatSoft.TraceLog 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 and take full control of your logging, de facto.
TraceLog SDK for .NET by CamatSoft
Integrations | NuGet Version | NuGet Preview | Documentation |
---|---|---|---|
CamatSoft.TraceLog | |||
CamatSoft.TraceLog.Contract | |||
CamatSoft.TraceLog.Data |
DSN
Register on CamatSoft.TraceLog
DSN Test
https://pRGLY9uhyKPu4b44s3Pe6a6pk46NBbRz4b2E2RMpb648h8DR2N7K7qsb97XFYM2r@o20241101.tracelog.camatsoft.com/2024111101
Please use UseFileIO = true;
Constructor
Camatsoft.TraceLog.Sdk.Init()
Camatsoft.TraceLog.Sdk.Init(string dsn)
Camatsoft.TraceLog.Sdk.Init(string dsn, Action<Scope> scope)
Camatsoft.TraceLog.Sdk.Init(TraceLogOptions options)
Camatsoft.TraceLog.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 | 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. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 is compatible. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.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. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETCoreApp 3.0
- Camatsoft.TraceLog.Contract (>= 4.1.1)
- Camatsoft.TraceLog.Data (>= 2.1.1)
- Newtonsoft.Json (>= 13.0.3)
-
.NETFramework 4.6
- Camatsoft.TraceLog.Contract (>= 4.1.1)
- Camatsoft.TraceLog.Data (>= 2.1.1)
- Newtonsoft.Json (>= 13.0.3)
-
.NETStandard 2.0
- Camatsoft.TraceLog.Contract (>= 4.1.1)
- Camatsoft.TraceLog.Data (>= 2.1.1)
- Newtonsoft.Json (>= 13.0.3)
-
net5.0
- Camatsoft.TraceLog.Contract (>= 4.1.1)
- Camatsoft.TraceLog.Data (>= 2.1.1)
-
net6.0
- Camatsoft.TraceLog.Contract (>= 4.1.1)
- Camatsoft.TraceLog.Data (>= 2.1.1)
-
net7.0
- Camatsoft.TraceLog.Contract (>= 4.1.1)
- Camatsoft.TraceLog.Data (>= 2.1.1)
-
net8.0
- Camatsoft.TraceLog.Contract (>= 4.1.1)
- Camatsoft.TraceLog.Data (>= 2.1.1)
-
net9.0
- Camatsoft.TraceLog.Contract (>= 4.1.1)
- Camatsoft.TraceLog.Data (>= 2.1.1)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Camatsoft.TraceLog:
Package | Downloads |
---|---|
Camatsoft.TraceLog.AspNetCore
Official Extends SDK TraceLog for ASP.NetCore Logging and tracing reporting with fully-structured, events that helps developers monitor and fix crashes in real time. |
|
Camatsoft.TraceLog.AspNet
Official Extends SDK TraceLog for ASP.Net 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 |
---|---|---|
4.1.1 | 160 | 11/26/2024 |
# Release Notes
## v4.1.1
- Multi-Target Framework Support: Added compatibility with .NET Framework 4.6+, .NET Standard 2.0+, .NET Core 3.0+, and .NET 5.0+ to ensure wider usage across various .NET projects.
- Compatibility
- OperatingSystemDto
- VersionDto
## v3.2.7
- SdkVersionMapper: Introduced a new feature to handle and map SDK versions for more accurate versioning management.
## v3.2.6
- SDK Initialization Improvement: Enhanced the SDK initialization process for more efficient startup and configuration.
## v3.2.5
- TraceLogOptions in Initialization: Added customizable logging options (TraceLogOptions) to configure logging behavior during initialization.
- Fix URL API: Corrected URL API endpoint handling for better integration.
## v3.2.4
- Scope Action Added: Added a scope parameter for better control over logging contexts.
## v3.2.3
- TraceLogOptions Added: Introduced TraceLogOptions to allow users to customize trace logging settings.
## v3.2.2
- Extras in Scope: Expanded scope functionality by adding support for extra parameters.
## v3.2.0
- Multi-Project Support: Enhanced support for multiple projects, enabling seamless integration across various solutions.
## v3.1.0
- Framework Update: Updated framework support for improved stability and compatibility.
## v2.0.0
- Major Framework Change: Refactored and optimized core framework for better performance.
## v1.0.0
- Initial Release: The first release of the project with core functionality.