Interface Logger

Not Opinionated ts Logger with:

  • appId (distinguish log between multiple instances)
  • tags support (tag child loggers, find and filter certain logs super-fast)
  • multiple channels output (you could add your own one: e.g. for parallel monitoring;

See

  • LoggerOptions)
  • sensitive fields sanitization (perf optimized, customizable:
  • LogContext)
  • stack output of any call (configurable:
  • LogContext)

Hierarchy

  • Logger

Properties

appId: string
channels: LogOutputRegistry
debug: LogMethod
error: LogMethod
info: LogMethod
tagged: ((...tags) => Logger)

Type declaration

    • (...tags): Logger
    • Creates Child logger with added tags. Note: AppId and Channels are reused and remain same.

      Parameters

      • Rest ...tags: readonly string[]

      Returns Logger

tags: readonly string[]
warn: LogMethod

Generated using TypeDoc