testLoggerQmul 1.0.6
dotnet add package testLoggerQmul --version 1.0.6
NuGet\Install-Package testLoggerQmul -Version 1.0.6
<PackageReference Include="testLoggerQmul" Version="1.0.6" />
<PackageVersion Include="testLoggerQmul" Version="1.0.6" />
<PackageReference Include="testLoggerQmul" />
paket add testLoggerQmul --version 1.0.6
#r "nuget: testLoggerQmul, 1.0.6"
#:package testLoggerQmul@1.0.6
#addin nuget:?package=testLoggerQmul&version=1.0.6
#tool nuget:?package=testLoggerQmul&version=1.0.6
Configurable Logging System
It is a Nuget package that is designed for making the logging easy by simple configuration and pushing logs to the elastic db based on time and count configuration whichever matches first. This is also extended for users to configure file based logging as well which will perform file rollovers based on time and count. Apart from this, there are two websites which is one for registration and other for viewing or analyzing your logs which is made in ReactJS.
Installation
Both backend and frontend needs to be executed so for that
Pre-requisites
You should have Node installed with version "18.15.0" or greater.
Dot net runtime should be downloaded with version "7.0.302" or greater.
Backend
Open the code from the URL: Code Link
or from Github: LoggerRegistration → Go to finalChanges branch
- Open the LoggerRegistration folder in the Visual Studio and run the solution, if using visual studio code or command prompt navigate to the folder where LoggerRegistration.sln file is there and then
dotnet run
Github: LogFetcher → Go to finalChanges branch
- Open the LogFetcher folder in the Visual Studio and run the solution, if using visual studio code or command prompt navigate to the folder where LogFetcher.sln file is there and then
dotnet run
Github: LoggingSystem → Go to finalChanges branch
- Open the LoggerLibrary folder which contains code for the Nuget package which when changed needs to published, after changing the assembly version in csproj and building in release mode. Then it needs to be published to NugetPackageManager website by logging via our credentials.
Frontend
Open the code from the URL: Code Link
Github: LoggerRegistration → Go to loggerRegistration branch
- Open the logging-registration folder in then visual studio code in terminal or command prompt and type
npm install
npm start
Github: LoggingSystem → Go to systemDashboardbranch
- Open the logging-system-dashboard folder in then visual studio code in terminal or command prompt and type
npm install
npm start
Usage
Once all the code is running, so in the logger registration website register yourself and service with all the required details and then, capture the unique id popped up which will be used for the web apps which might be running on port 3000.
In your new dot net core website configure in appSettings.json like (LogginMethod → 0 is for elastic db and website usage and 1 is for file based on time and count config)
"LoggerConfiguration": {
"Count": 20000,
"FilePath": "C:\\Temp\\",
"LoggingMethod": 0,
"RegistrationID": "test-wage-2c006383-679d-4148-87ce-a6b722c41734",
"Time": 1
}
Install "testLoggerQmul" package from command line or via NugetPackageManager
and in your Program.cs or Startup.cs
var loggerConfiguration = builder.Configuration.GetSection("LoggerConfiguration").Get<LoggerConfiguration>();
builder.Services.AddControllers();
builder.Logging.AddProvider(new CustomLoggerProvider(loggerConfiguration));
and after var app = builder.Build()
app.UseCenteralizedLogger();
- Open the logging system dashboard website which might be running on port 3001. Enter your unique registration id and then analyze your logs
Note: You will be receiving alerts over mail you have mentioned.
Copyright
Apurva Tandon
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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 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. net9.0 was computed. 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. |
-
net6.0
- Microsoft.AspNetCore.CookiePolicy (>= 2.2.8)
- Microsoft.AspNetCore.Mvc.Core (>= 2.2.5)
- Microsoft.AspNetCore.Session (>= 2.2.0)
- Microsoft.Extensions.Caching.Memory (>= 7.0.0)
- Microsoft.Extensions.Logging (>= 7.0.0)
- NEST (>= 7.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.