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
<PackageReference Include="SELISE_BD.LOGGER.PERIODIC" Version="1.0.1" />
paket add SELISE_BD.LOGGER.PERIODIC --version 1.0.1
#r "nuget: SELISE_BD.LOGGER.PERIODIC, 1.0.1"
// 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 | 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. |
-
net6.0
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.0)
- SELISE_BD.TRACKER.LOGGER (>= 1.0.0)
- Serilog (>= 3.1.1)
- Serilog.Sinks.Seq (>= 7.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.