SELISE_BD.LOGGER.PERIODIC 1.0.1

dotnet add package SELISE_BD.LOGGER.PERIODIC --version 1.0.1                
NuGet\Install-Package SELISE_BD.LOGGER.PERIODIC -Version 1.0.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="SELISE_BD.LOGGER.PERIODIC" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SELISE_BD.LOGGER.PERIODIC --version 1.0.1                
#r "nuget: SELISE_BD.LOGGER.PERIODIC, 1.0.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.
// Install SELISE_BD.LOGGER.PERIODIC as a Cake Addin
#addin nuget:?package=SELISE_BD.LOGGER.PERIODIC&version=1.0.1

// Install SELISE_BD.LOGGER.PERIODIC as a Cake Tool
#tool nuget:?package=SELISE_BD.LOGGER.PERIODIC&version=1.0.1                

Setup Instructions

1. Install the Package

Provide instructions on how to install the necessary package here.

2. Configure Logging and Register Dependencies

Add the following code to configure logging and register dependencies:

var builder = WebApplication.CreateBuilder(args);
PeriodicLoggerService.ConfigureLogging(builder);

3. Use Request Logging Middleware

Include the following lines to build the application and use the request logging middleware:

var app = builder.Build();
app.UseMiddleware<RequestLoggingMiddleware>();

4. Configure Application Settings

Add the following JSON to appsettings.json to pass organization, application, and hosted logger application API URL and SyncIntervalMinutes to decide syncing time with logger file and log tracker sync. Also, to send logs to Seq, ensure that the logging configuration includes Seq settings:

{
  "LogTracker": {
    "OrganizationId": "aec74b36-d2da-4cd4-9cd1-abde7d23553c",
    "ApplicationId": "f0d91e36-95c6-42fd-93be-2b2e7bc066d0",
    "ApiUrl": "http://localhost:5006/"
  },
  "Seq": {
    "SeqServerUrl": "http://localhost:5341",
    "SeqApiKey": "FcUQ9ujzJGvFK7gvRkrj"
  },
  "PeriodicLogger": {
    "SyncIntervalMinutes": 5
  }
}
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. 
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.1 106 6/11/2024
1.0.0 108 6/9/2024