AisIotCentricFramework.Logging 1.5.1

dotnet add package AisIotCentricFramework.Logging --version 1.5.1
                    
NuGet\Install-Package AisIotCentricFramework.Logging -Version 1.5.1
                    
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="AisIotCentricFramework.Logging" Version="1.5.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AisIotCentricFramework.Logging" Version="1.5.1" />
                    
Directory.Packages.props
<PackageReference Include="AisIotCentricFramework.Logging" />
                    
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 AisIotCentricFramework.Logging --version 1.5.1
                    
#r "nuget: AisIotCentricFramework.Logging, 1.5.1"
                    
#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 AisIotCentricFramework.Logging@1.5.1
                    
#: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=AisIotCentricFramework.Logging&version=1.5.1
                    
Install as a Cake Addin
#tool nuget:?package=AisIotCentricFramework.Logging&version=1.5.1
                    
Install as a Cake Tool

LoggingFilterAttribute

Overview

LoggingFilterAttribute is a custom ASP.NET Core action filter that logs information about incoming requests and outgoing responses. It is used to provide detailed insights into the application's behavior during runtime, helping with debugging and monitoring.

This attribute can be applied globally, at the controller level, or on individual actions.


Features

  • Logs HTTP request details, such as method, URL, headers, and body.
  • Logs HTTP response details, including status codes and response bodies.
  • Easy integration with ASP.NET Core's built-in logging framework.
  • Configurable for selective logging.

Installation

  1. Add the LoggingFilterAttribute Class in Services MVC
    LoggingFilterAttribute Class will help you to automatic logging incoming and outgoing message
  2. Add the LoggingHandleExceptionFilterAttibute class in Service MVC LoggingHandleExceptionFilterAttribute class will help you to logging any exception in your application
  3. Add the LoggingHTTPFormatFilterAttribute Class to AddHttpClient LoggingHTTPFormatFilterAttribute will help you to logging your outgoing message etc. url,body,queryparam,headers and Response from externalNode


   builder.Services.AddMvc(options =>
{
    config.Filters.Add(typeof(LoggingFilterAttribute)); 
	config.Filters.Add(typeof(LoggingHandleExceptionFilterAttribute));  
});

builder.Services.AddLogging(c=>c.AddAisFrameWorkLogging()); 
builder.Services.AddAisFrameWorkUtil(); 

builder.Services.AddTransient<LoggingHTTPFormatFilterAttribute>();
builder.Services.AddHttpClient<ServiceHTTP>(c =>
{
    c.BaseAddress = Configuration.BaseAddress;
})
       .ConfigurePrimaryHttpMessageHandler(() =>
       {
           return new SocketsHttpHandler
           {
               PooledConnectionIdleTimeout = TimeSpan.FromSeconds(30),
               PooledConnectionLifetime = TimeSpan.FromSeconds(30),
               ConnectTimeout = TimeSpan.FromSeconds(30),
                SslOptions = new SslClientAuthenticationOptions
               {
                   EnabledSslProtocols = System.Security.Authentication.SslProtocols.Tls12 | System.Security.Authentication.SslProtocols.Tls13,
                   RemoteCertificateValidationCallback = (sender, cert, chain, sslPolicyErrors) => true
               }
               
           };
       }).AddHttpMessageHandler<LoggingHTTPFormatFilterAttribute>();

Product Compatible and additional computed target framework versions.
.NET 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.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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 AisIotCentricFramework.Logging:

Package Downloads
AisIotCentricFramework.Database.Mongo

A framework developed by AIS eSports Development Team for internal and external solutions.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.5.1 133 6/2/2026
1.5.0 154 5/29/2026
1.4.9 139 5/20/2026
1.4.8 187 5/17/2026
1.4.7 457 4/10/2026
1.4.6 147 4/8/2026
1.4.5 257 3/24/2026
1.4.4 145 3/24/2026
1.4.3 192 3/5/2026
1.4.2 143 3/4/2026
1.4.1 178 2/20/2026
1.4.0 103 2/20/2026
1.3.9 639 11/28/2025
1.3.8 282 11/25/2025
1.3.7 545 11/21/2025
1.3.6 441 11/21/2025
1.3.5 538 11/18/2025
1.3.4 304 11/14/2025
1.3.3 265 11/14/2025
1.3.2 341 11/12/2025
Loading failed