Skip to main content

@latimer-woods-tech/logger

Structured JSON logger with levels, context binding, and child loggers. Depends on @latimer-woods-tech/errors and @latimer-woods-tech/monitoring.

Installation

API

createLogger(opts)

Logger

All log methods emit a JSON line to console.log — Cloudflare Workers streams this to Logpush.

child(context)

Creates a child logger that inherits the parent’s service and merges in additional context fields.

Example