Skip to main content

Installation

Requires Go 1.21 or later (uses log/slog).

Initialise the client

Every entry is sent immediately — there is no internal buffer or background flush.

Log methods

Signature: (ctx, message, meta, tags...)
  • metamap[string]any of structured fields, or nil
  • tags — 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:
The middleware sets the log level based on response status: 2xx/3xx → INFO, 4xx → WARN, 5xx → ERROR.

Direct ingestion (bypass queue)


Raw HTTP (no SDK)