ILogger interface

Minimal logging contract the framework writes diagnostics through. The global console satisfies it, and it is the default.

Pass an implementation as IMQOptions.logger to redirect queue output, or a no-op implementation to silence it. The method names match the members of LogLevel, so a level can be used as a property lookup on a logger.

Signature:

export interface ILogger 

Methods

Method

Description

error(args)

Writes a message at the error level.

info(args)

Writes a message at the info level.

log(args)

Writes a message at the log level.

warn(args)

Writes a message at the warn level.

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.