testLoggerQmul 1.0.6

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

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

  1. You should have Node installed with version "18.15.0" or greater.

  2. 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

  1. 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

  1. 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

  1. 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

  1. 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

  1. Open the logging-system-dashboard folder in then visual studio code in terminal or command prompt and type
npm install
npm start

Usage

  1. 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.

  2. 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();
  1. 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.

Apurva Tandon

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.6 247 8/24/2023
1.0.5 238 8/22/2023
1.0.4 237 8/11/2023
1.0.3 248 8/6/2023
1.0.2 255 8/5/2023
1.0.1 257 8/5/2023
1.0.0 244 7/23/2023