SFERA.Helpers.WEB.JsonLogger NuGet Package

Very simple logger usable for logging any requests and responses inside your controller.

It creates easy to access logs grouped by controller name.

just add this row at beginning of your controller:

SFERA.Helpers.WEB.JsonLogger.Log.LogRequest(ControllerContext: this.ControllerContext, SessionID: Request.Credentials.SessionID, BaseLogFolder: new System.IO.DirectoryInfo(new System.Uri([yourlogdirefctory] + @"\").LocalPath).FullName, Request: [yourIncomingRequestClass];

and this row at end of your controller:

SFERA.Helpers.WEB.JsonLogger.Log.LogResponse(ControllerContext: this.ControllerContext, SessionID: Request.Credentials.SessionID, BaseLogFolder: new System.IO.DirectoryInfo(new System.Uri([yourlogdirefctory] + @"\").LocalPath).FullName, Response: [yourOutgoingRequestClass]);.




Got any SFERA.Helpers.WEB.JsonLogger Question?





Info

Version: 1.2021.6
Author(s): SFERA srl
Last Update: Monday, November 15, 2021
.NET Fiddle: Create the first Fiddle
NuGet Url: https://www.nuget.org/packages/SFERA.Helpers.WEB.JsonLogger


Install
Install-Package SFERA.Helpers.WEB.JsonLogger
dotnet add package SFERA.Helpers.WEB.JsonLogger
paket add SFERA.Helpers.WEB.JsonLogger
SFERA.Helpers.WEB.JsonLogger Download (Unzip the "nupkg" after downloading)

.NETFramework 4.7 net461 net462 net471 net472 net48 net5.0 netcoreapp2.1 netcoreapp3.1




STATS

must-have-score

1

avg-downloads-per-day

0

days-since-last-release

1104