Provides a customizable logging mechanism across different levels of verbosity.

Hierarchy (view full)

Implements

  • ILogger

Constructors

Methods

Constructors

  • Initializes logging functions for each log level, optionally overridden by provided mappings.

    Parameters

    • OptionallogMapping: Partial<Record<LogLevel, undefined | LogFunction>>

      Optional mappings to override default log functions per level.

    Returns Logger

Methods

  • Logs a message at the specified log level if a corresponding log function is defined.

    Parameters

    • level: LogLevel

      The severity level of the log entry.

    • msg: MessageType

      The content of the log message.

    Returns void