Options
All
  • Public
  • Public/Protected
  • All
Menu

Logger which buffers all messages, use with care due to possible high memory footprint. Can be convenient in some cases. Call toString() for full output, or cast to this class and call getMessages() to do something with it yourself.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected _name

_name: string

Protected _open

_open: boolean = true

Accessors

name

  • get name(): string

Methods

Protected _getMessageFormatter

  • _getMessageFormatter(): function | null

close

  • close(): void

Protected createDefaultLogMessage

  • createDefaultLogMessage(msg: LogMessage): string

debug

debugc

  • debugc(msg: function, error?: undefined | function): void

Protected doLog

error

errorc

  • errorc(msg: function, error?: undefined | function): void

fatal

fatalc

  • fatalc(msg: function, error?: undefined | function): void

getLogLevel

getMessages

  • getMessages(): string[]

info

infoc

  • infoc(msg: function, error?: undefined | function): void

isDebugEnabled

  • isDebugEnabled(): boolean

isErrorEnabled

  • isErrorEnabled(): boolean

isFatalEnabled

  • isFatalEnabled(): boolean

isInfoEnabled

  • isInfoEnabled(): boolean

isOpen

  • isOpen(): boolean

isTraceEnabled

  • isTraceEnabled(): boolean

isWarnEnabled

  • isWarnEnabled(): boolean

toString

  • toString(): string

trace

tracec

  • tracec(msg: function, error?: undefined | function): void

warn

warnc

  • warnc(msg: function, error?: undefined | function): void

Generated using TypeDoc