Class JamLogger

Not Opinionated ts Logger with:

  • appId (distinguish log between multiple instances)
  • tags (tag child loggers, find & filter certain logs super-fast)
  • multiple channels output (add ur own one e.g. for parallel monitoring)
  • metadata (add any additional info to each log entry)

config to customize.

Implements

Constructors

Properties

appId: string
channels: LogOutputRegistry
debug: LogMethod = ...
error: LogMethod = ...
info: LogMethod = ...
stackConfig: StackConfig
tags: readonly string[]
translator: LogTranslator
warn: LogMethod = ...
instancesMap: WeakMap<LoggerConfig, Logger> = ...

Logger with same config would be created only once and shared across the app

Accessors

Methods

  • Parameters

    • level: LogLevel
    • tags: readonly string[]
    • ...args: unknown[]

      – optionalParams. Note: LogMeta could be among arguments (nearly last).

    Returns void