Skip to main content

Installation


Initialise the client


Log methods

All methods accept an optional second argument with:
  • meta — arbitrary object of structured fields
  • tags — array of string tags for filtering in the UI

Flush and close


Express.js middleware


Winston transport

Winston levels are mapped: error → ERROR, warn → WARN, info/http → INFO, verbose/debug/silly → DEBUG.

Pino destination

Pino levels are mapped: ≥50 → ERROR, ≥40 → WARN, ≥30 → INFO, <30 → DEBUG.

Raw fetch (no SDK)