Skip to content

Logger

Protocol
logger:
Runtime
Node.jsBrowser

The logger provider performs no network request.

logger://[?level=<debug|info|warn|error>]
import { send } from 'statocysts'
await send('logger://?level=warn', {
title: 'Queue delayed',
body: 'The oldest job is five minutes old.',
})

level defaults to info and selects the matching console method.

[statocysts] Queue delayed
The oldest job is five minutes old.

The title is prefixed with [statocysts]; the optional body appears on the next line.

The logger provider has no provider-specific options.