VOOZH about

URL: https://www.nuget.org/packages/KissLog.AspNetCore/

⇱ NuGet Gallery | KissLog.AspNetCore 5.3.2




👁 Image
KissLog.AspNetCore 5.3.2

Prefix Reserved
dotnet add package KissLog.AspNetCore --version 5.3.2
 
 
NuGet\Install-Package KissLog.AspNetCore -Version 5.3.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="KissLog.AspNetCore" Version="5.3.2" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="KissLog.AspNetCore" Version="5.3.2" />
 
Directory.Packages.props
<PackageReference Include="KissLog.AspNetCore" />
 
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 KissLog.AspNetCore --version 5.3.2
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: KissLog.AspNetCore, 5.3.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 KissLog.AspNetCore@5.3.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=KissLog.AspNetCore&version=5.3.2
 
Install as a Cake Addin
#tool nuget:?package=KissLog.AspNetCore&version=5.3.2
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

KissLog

👁 KissLog
👁 KissLog.AspNetCore
👁 KissLog.AspNet.WebApi
👁 KissLog.AspNet.Mvc
<br> 👁 Downloads

KissLog is the built-in .NET integration for saving the logs to logbee.net.

Check the Wiki page for a complete list of features.

.NET support

Why KissLog?

KissLog implements three main components: logging functionality, exceptions tracking and application insights.

For web applications, KissLog automatically captures all the HTTP properties.

KissLog keeps the log events in memory and sends them to the registered listeners all at once. This can help reduce the load of the persistence implementation (such as Disk I/O, database operations or network throughput).

Centralized logging using logbee.net or Logbee on-premises.

<table><tr><td> <img alt="logbee.net centralized logging" width="600" src="https://github.com/catalingavan/KissLog.Sdk/assets/39127098/583ff625-d0ce-4ebc-b0d7-9a3b0257d3ef" /> </td></tr></table>

Basic usage

using KissLog;
using KissLog.Listeners.FileListener;

namespace ConsoleApp
{
 class Program
 {
 static void Main(string[] args)
 {
 KissLogConfiguration.Listeners
 .Add(new LocalTextFileListener("logs", FlushTrigger.OnFlush));

 var logger = new Logger();

 logger.Trace("Hey, I am a log message");

 Logger.NotifyListeners(logger);
 }
 }
}

Saving the logs

KissLog saves the logs to multiple output locations by using log listeners.

Log listeners are registered at application startup using the KissLogConfiguration.Listeners container.

Custom log listeners can be easily implemented.

Using interceptors, log listeners can apply conditional filtering rules before saving the events.

namespace ConsoleApp
{
 class Program
 {
 static void Main(string[] args)
 {
 KissLogConfiguration.Listeners
 .Add(new LocalTextFileListener("logs", FlushTrigger.OnMessage))
 .Add(new CustomMongoDbListener("mongodb://localhost:27017", "Logs")
 {
 Interceptor = new LogLevelInterceptor(LogLevel.Information)
 });

 var logger = new Logger();
 logger.Trace("Hey, I am a log message");

 Logger.NotifyListeners(logger);
 }
 }
}

Configuration

KissLog supports various configuration options using the KissLogConfiguration.Options configuration object.

private void ConfigureKissLog
{
 KissLogConfiguration.Options
 .AppendExceptionDetails((Exception ex) =>
 {
 if (ex is DivideByZeroException zeroDivisionEx)
 return ">>> Should check if the denominator is zero before dividing";

 return null;
 });
}

👁 AppendExceptionDetails

Samples

Different use cases and examples can be found on the KissLog integrations page.

Feedback

Please use the issues section to report bugs, suggestions and general feedback.

Contributing

All contributions are very welcomed: code, documentation, samples, bug reports, feature requests.

License

Product Versions Compatible and additional computed target framework versions.
.NET net5.0 net5.0 was computed.  net5.0-windows net5.0-windows was computed.  net6.0 net6.0 is compatible.  net6.0-android net6.0-android was computed.  net6.0-ios net6.0-ios was computed.  net6.0-maccatalyst net6.0-maccatalyst was computed.  net6.0-macos net6.0-macos was computed.  net6.0-tvos net6.0-tvos was computed.  net6.0-windows net6.0-windows was computed.  net7.0 net7.0 is compatible.  net7.0-android net7.0-android was computed.  net7.0-ios net7.0-ios was computed.  net7.0-maccatalyst net7.0-maccatalyst was computed.  net7.0-macos net7.0-macos was computed.  net7.0-tvos net7.0-tvos was computed.  net7.0-windows net7.0-windows was computed.  net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
.NET Core netcoreapp2.0 netcoreapp2.0 was computed.  netcoreapp2.1 netcoreapp2.1 was computed.  netcoreapp2.2 netcoreapp2.2 was computed.  netcoreapp3.0 netcoreapp3.0 was computed.  netcoreapp3.1 netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 netstandard2.0 is compatible.  netstandard2.1 netstandard2.1 was computed. 
.NET Framework net461 net461 was computed.  net462 net462 was computed.  net463 net463 was computed.  net47 net47 was computed.  net471 net471 was computed.  net472 net472 was computed.  net48 net48 was computed.  net481 net481 was computed. 
MonoAndroid monoandroid monoandroid was computed. 
MonoMac monomac monomac was computed. 
MonoTouch monotouch monotouch was computed. 
Tizen tizen40 tizen40 was computed.  tizen60 tizen60 was computed. 
Xamarin.iOS xamarinios xamarinios was computed. 
Xamarin.Mac xamarinmac xamarinmac was computed. 
Xamarin.TVOS xamarintvos xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on KissLog.AspNetCore:

Package Downloads
DataC.CoreApi

Pacote core de desenvolvimento sistemas Data C

Measure.Performance.Calculate

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
5.3.2 4,360 2/24/2025
5.3.1 5,889 10/16/2024
5.3.0 5,038 8/12/2024
5.2.0 4,093 5/3/2024
5.1.2 48,260 5/2/2022
5.1.1 20,507 12/27/2021
5.1.0 1,032 12/26/2021
5.0.0 2,961 11/6/2021
4.2.0 19,281 8/6/2021
4.1.0 21,703 1/31/2021
4.0.0 8,964 9/21/2020
2.5.6 7,500 3/3/2020
2.5.5 2,014 12/13/2019
2.5.3 1,625 11/22/2019
2.5.2 1,407 11/22/2019
2.5.1 13,530 10/16/2019
2.5.0 1,322 10/12/2019
2.4.2 2,557 9/26/2019
2.4.1 1,394 9/26/2019
2.4.0 2,129 7/5/2019
Loading failed