Isoftforge.Log.Serilog
1.0.2
dotnet add package Isoftforge.Log.Serilog --version 1.0.2
NuGet\Install-Package Isoftforge.Log.Serilog -Version 1.0.2
<PackageReference Include="Isoftforge.Log.Serilog" Version="1.0.2" />
<PackageVersion Include="Isoftforge.Log.Serilog" Version="1.0.2" />
<PackageReference Include="Isoftforge.Log.Serilog" />
paket add Isoftforge.Log.Serilog --version 1.0.2
#r "nuget: Isoftforge.Log.Serilog, 1.0.2"
#:package Isoftforge.Log.Serilog@1.0.2
#addin nuget:?package=Isoftforge.Log.Serilog&version=1.0.2
#tool nuget:?package=Isoftforge.Log.Serilog&version=1.0.2
Isoftforge.Log.Serilog
Serilog sink for the isoftforge Log satellite API. Batches log events and sends them to POST /ingest/events.
Configuration
{
"IsoftforgeLog": {
"BaseUrl": "https://apps-api.isoftforge.it/api/log",
"ApiKey": "ifc_your-api-key",
"Application": "my-app",
"EnableHeartbeat": true,
"HeartbeatIntervalSeconds": 30,
"BatchSize": 50,
"PeriodSeconds": 2
}
}
- BaseUrl — hub (
https://apps-api.isoftforge.it/api/log) or dedicated host (https://log-api.isoftforge.it/api) - ApiKey — organization credential from Log → Credentials
- Application — default application name on ingested events and slug for portal health monitoring
- EnableHeartbeat — when
true(default), sendsPOST /applications/{slug}/heartbeatperiodically - HeartbeatIntervalSeconds — heartbeat interval (default
30; keep below the interval configured in Log → Applications)
ServerUrl is accepted as an alias for BaseUrl.
Application health: log ingestion and heartbeat are separate. Register the application in the portal (Log → Applications) and set Application to the same slug (e.g. my-app). Without heartbeats, the portal shows Unhealthy even when logs arrive correctly.
Usage
using Isoftforge.Log.Serilog;
using Serilog;
var builder = WebApplication.CreateBuilder(args);
builder.UseIsoftforgeLog(builder.Configuration.GetSection("IsoftforgeLog"));
Or manually:
using Isoftforge.Log.Serilog;
using Serilog;
Log.Logger = new LoggerConfiguration()
.WriteTo.Console()
.WriteTo.IsoftforgeLog(builder.Configuration.GetSection("IsoftforgeLog"))
.CreateLogger();
builder.Host.UseSerilog();
Install packages:
dotnet add package Isoftforge.Log.Serilog
dotnet add package Isoftforge.Apps.Client.Log
Isoftforge.Log.Serilog pulls in Serilog.AspNetCore for UseSerilog().
The environment is resolved from the API key; no X-Log-Environment header is required.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. 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. |
-
net9.0
- Isoftforge.Apps.Client.Log (>= 1.0.1)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.8)
- Serilog (>= 4.3.0)
- Serilog.AspNetCore (>= 9.0.0)
- Serilog.Sinks.PeriodicBatching (>= 5.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.