Installation
Initialise the client
| Option | Default | Description |
|---|---|---|
apiKey | required | Your Log Ingestor API key |
projectId | required | UUID of the project to ingest into |
source | "unknown" | Default source tag applied to every entry |
baseURL | "https://api.streamlogia.com" | Override the API base URL |
batchSize | 1 | Flush when the queue reaches this many entries |
flushIntervalMs | 5000 | Background flush interval in milliseconds |
console | true | Mirror logs to the console |
onError | — | Called with the error when an ingest fails |
Log methods
meta— arbitrary object of structured fieldstags— array of string tags for filtering in the UI
Flush and close
Express.js middleware
Winston transport
error → ERROR, warn → WARN, info/http → INFO, verbose/debug/silly → DEBUG.
Pino destination
≥50 → ERROR, ≥40 → WARN, ≥30 → INFO, <30 → DEBUG.