Creates a logger function with persistent default options.
The returned function accepts an optional message and optional per-call
options. Per-call options override the logger defaults. Supports three
calling patterns:
logger("foo") — uses default severity from logger options
Creates a logger function with persistent default options.
The returned function accepts an optional message and optional per-call options. Per-call options override the logger defaults. Supports three calling patterns:
logger("foo")— uses default severity from logger optionslogger.debug("foo")— forces debug severitylogger("foo", { severity: "info" })— per-call options override