Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Logger

Hierarchy

  • Logger

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Logger(__namedParameters?: LoggerOptions, logger?: Logger): Logger
  • Parameters

    • __namedParameters: LoggerOptions = {}
    • logger: Logger = ...

    Returns Logger

Properties

Private Readonly #logger

#logger: Logger

Methods

child

  • child(params?: Bindings): Logger

debug

  • debug(message: string, extra?: Record<string, unknown>): void
  • Parameters

    • message: string
    • extra: Record<string, unknown> = {}

    Returns void

error

  • error(message: string, extra?: Record<string, unknown>): void
  • Parameters

    • message: string
    • extra: Record<string, unknown> = {}

    Returns void

fatal

  • fatal(message: string, extra?: Record<string, unknown>): void
  • Parameters

    • message: string
    • extra: Record<string, unknown> = {}

    Returns void

info

  • info(message: string, extra?: Record<string, unknown>): void
  • Parameters

    • message: string
    • extra: Record<string, unknown> = {}

    Returns void

trace

  • trace(message: string, extra?: Record<string, unknown>): void
  • Parameters

    • message: string
    • extra: Record<string, unknown> = {}

    Returns void

warn

  • warn(message: string, extra?: Record<string, unknown>): void
  • Parameters

    • message: string
    • extra: Record<string, unknown> = {}

    Returns void

Static getLevel

  • getLevel(env_name?: string): "fatal" | "error" | "warn" | "info" | "debug" | "trace" | "silent"
  • Parameters

    • env_name: string = ENV_VARIABLE_NAME

    Returns "fatal" | "error" | "warn" | "info" | "debug" | "trace" | "silent"