Options
All
  • Public
  • Public/Protected
  • All
Menu

Standard logger instance for the program and its commands

todo

Allow BYO logger

Hierarchy

Implements

Index

Constructors

constructor

Properties

color

color: Chalk & object = chalk

ivar reference to chalk as 'color'

name

name: string

Accessors

stream

stream:

getter for the output stream

Methods

append

  • append(...msgs: any[]): this

debug

  • debug(...msg: any[]): Logger

end

  • end(...msgs: any[]): this

error

  • error(...msg: (string | Error)[]): Logger

fatal

info

  • info(...msg: string[]): Logger

output

  • output(...msg: any[]): this

setLevel

trace

  • trace(...msg: any[]): Logger

warn

  • warn(...msg: (string | Error)[]): Logger

write

  • write(...msgs: any[]): this

Static defaultLogger

Static setDefaultLevel

  • Set a default level to be used by all logger instantantiations

    Parameters

    • level: LOG_LEVEL

      default level used for Logger instances

    Returns void

Static setDefaultLogger

  • setDefaultLogger(logger: ILogger): void