Documentation
Serilog
One-line Serilog sink that POSTs to QikLog ingest.
Ship logs from a .NET app with one line after the package reference. The sink
POSTs to the same POST /v1/logs contract as qiklog send and the try-it-now curl.
Install
dotnet add package QikLog.Serilog
Until the package is on nuget.org, pack from this repo:
make pack-serilog
dotnet add package QikLog.Serilog --source artifacts/nuget
One line
using Serilog;
Log.Logger = new LoggerConfiguration()
.WriteTo.QikLog("https://api.qiklog.com", apiKey, "demo")
.CreateLogger();
Log.Information("hello from serilog");
apiKey is sent as Authorization: Bearer. source is the QikLog stream name
(use demo to see lines on the landing live panel and /tail/demo).
Events flush in batches of 50 or every 2 seconds, then each event is posted as
its own POST /v1/logs. On ingest failure (4xx, 5xx, or network error) the
event is written to Serilog SelfLog and dropped — no retry, backoff, or
re-queue. Do not treat this sink as a delivery guarantee.
Serilog.Debugging.SelfLog.Enable(Console.Error);
Next steps
- Ingest API — JSON fields and status codes
- API keys — mint a Bearer key
- Live tail — watch the source in the browser
- CLI — send and watch from a terminal