OptionalcontextProperties: Record<string, unknown>Log a debug-level message.
Optionalproperties: Record<string, unknown>Log a debug-level message.
Flushes all sinks and releases resources.
Log an error-level message with an optional exception.
Optionalproperties: Record<string, unknown>Log an error-level message with an optional exception.
Optionalproperties: Record<string, unknown>Log an error-level message with an optional exception.
Log an error-level message with an optional exception.
Log a fatal-level message with an optional exception.
Optionalproperties: Record<string, unknown>Log a fatal-level message with an optional exception.
Optionalproperties: Record<string, unknown>Log a fatal-level message with an optional exception.
Log a fatal-level message with an optional exception.
Flushes all pending events through the pipeline to sinks.
Creates a child logger with additional context properties.
property name, or an object of key-value pairs
Optionalvalue: unknownproperty value (when key is a string)
a new Logger with merged context properties
Log an information-level message.
Optionalproperties: Record<string, unknown>Log an information-level message.
Checks whether the given level is enabled for this logger.
the log level to check
true if events at this level would be processed
Changes the minimum log level at runtime.
new minimum level (name string or numeric value)
Log a trace-level message.
Optionalproperties: Record<string, unknown>Log a trace-level message.
Log a warning-level message.
Optionalproperties: Record<string, unknown>Log a warning-level message.
Polls an environment variable for log level changes.
environment variable name to watch
polling interval in milliseconds (default: 30000)
Structured logger with per-level methods, child context support, and
AsyncDisposablefor graceful shutdown.Log methods are synchronous and fire-and-forget — they push events into an internal async microtask pipeline.
Accepts both plain string templates and typed TypedTemplate objects (produced by
ParseStringSchemaBuilderfrom@cleverbrush/schema). Typed templates carry atemplateproperty with the raw{Property}pattern, which the logger uses asmessageTemplateso all events of the same shape are grouped correctly in Seq, SigNoz, ClickHouse, etc.Example