Installation
log/slog).
Initialise the client
| Option | Default | Description |
|---|---|---|
WithSource(s string) | "unknown" | Default source field on every log entry |
WithHTTPClient(hc) | default | Custom *http.Client |
Log methods
(ctx, message, meta, tags...)
meta—map[string]anyof structured fields, orniltags— variadic string tags for filtering in the UI
slog handler
Use Streamlogia as a slog.Handler to integrate with Go’s standard log/slog package:
HTTP middleware (net/http)
The client ships a built-in middleware that logs every request automatically:2xx/3xx → INFO, 4xx → WARN, 5xx → ERROR.