Konso.Clients.Logging
1.3.0
dotnet add package Konso.Clients.Logging --version 1.3.0
NuGet\Install-Package Konso.Clients.Logging -Version 1.3.0
<PackageReference Include="Konso.Clients.Logging" Version="1.3.0" />
paket add Konso.Clients.Logging --version 1.3.0
#r "nuget: Konso.Clients.Logging, 1.3.0"
// Install Konso.Clients.Logging as a Cake Addin
#addin nuget:?package=Konso.Clients.Logging&version=1.3.0
// Install Konso.Clients.Logging as a Cake Tool
#tool nuget:?package=Konso.Clients.Logging&version=1.3.0
Konso Logging .Net Client
The Konso Logging .NET Client Library is a powerful logging tool designed to simplify the process of capturing logs, enabling easy debugging, and centralizing log data within .NET applications. With its intuitive interface and comprehensive features, this library provides developers with a seamless logging experience.
Features
Logging Capabilities: Konso Logging allows developers to capture logs seamlessly within their .NET applications. By integrating this library into your codebase, you gain the ability to log various events, messages, errors, and exceptions that occur during runtime. These logs serve as valuable diagnostic information, aiding in the identification and resolution of issues within your application..
Easy Debugging: Debugging is made effortless with Konso Logging. By strategically placing log statements throughout your code, you can gain insights into the execution flow and pinpoint areas of interest. This enables developers to effectively trace the path of execution, track variable values, and identify potential bottlenecks or areas for optimization.
Centralized Log Data: The library facilitates centralized log data management, allowing you to store and organize logs in a centralized location. This centralized approach simplifies log data exploration, as it eliminates the need to sift through individual log files scattered across different systems or machines. By consolidating log data, you can easily search, filter, and analyze logs, gaining valuable insights into application behavior and performance..
Configurable Options: Konso Logging provides flexible configuration options to adapt to your specific logging requirements. Developers can customize log levels tailoring the logging experience to suit their application's needs.
Getting Started
To start using the Konso Logging .NET Client Library, simply follow the steps below:
⚠️ Prerequisites: Konso account and created bucket
Install the library via NuGet or by manually referencing the assembly in your project
NuGet\Install-Package Konso.Clients.Logging
Initialize the library with your API credentials and configuration settings
Add config to appsettings.json
:
"Konso": {
"Logging": {
"Endpoint": "https://apis.konso.io",
"BucketId": "<your bucket id>",
"ApiKey": "<bucket's access key>",
"App": "api",
"Level": "Information"
}
}
in startup.cs
:
.ConfigureLogging(logging => {
logging.ClearProviders();
logging.AddKonsoLogger(options => {
options.Endpoint = hostContext.Configuration.GetValue<string>("Konso:Logging:Endpoint");
options.BucketId = hostContext.Configuration.GetValue<string>("Konso:Logging:BucketId");
options.AppName = hostContext.Configuration.GetValue<string>("Konso:Logging:App");
options.ApiKey = hostContext.Configuration.GetValue<string>("Konso:Logging:ApiKey");
});
})
The library uses HttpContext to get scoped data such as request header or session id:
.ConfigureServices((hostContext, services) =>
{
services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>();
})
Begin capturing logs using the .NET abstracted models
Resolve the service in class constructor:
public SomeController(ILogger<SomeController> logger)
{
logger.Info("Welcome to TestApp");
}
Requirements
- .NET 5 or higher
- Konso BucketId and API key
Support and Feedback
If you encounter any issues or have any questions or feedback, please reach out to our support team at <support at konso.io>. We are here to assist you and continually improve the Konso Value Tracking .NET Client Library to meet your business needs.
✅ Developed / Developing by InDevLabs
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. 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 was computed. 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 was computed. 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. |
-
net5.0
- Microsoft.AspNetCore.Http.Abstractions (>= 2.2.0)
- Microsoft.Extensions.Configuration.Abstractions (>= 5.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 5.0.0)
- Microsoft.Extensions.Http (>= 5.0.0)
- Microsoft.Extensions.Logging (>= 5.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 5.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.