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 _addMessage

Protected _log

  • _log(level: LogLevel, msg: string, error?: Error | null): void

Protected _logc

  • _logc(level: LogLevel, msg: function, error?: function): void

close

  • close(): void

Protected createMessage

  • createMessage(level: LogLevel, msg: string, date: Date, error?: Error | null): Message

debug

  • debug(msg: string, error?: Error | null): void

debugc

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

Protected doLog

  • doLog(msg: string, logLevel: LogLevel): void

error

  • error(msg: string, error?: Error | null): void

errorc

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

fatal

  • fatal(msg: string, error?: Error | null): void

fatalc

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

getLogLevel

getMessages

  • getMessages(): string[]

info

  • info(msg: string, error?: Error | null): void

infoc

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

isDebugEnabled

  • isDebugEnabled(): boolean

isErrorEnabled

  • isErrorEnabled(): boolean

isFatalEnabled

  • isFatalEnabled(): boolean

isInfoEnabled

  • isInfoEnabled(): boolean

isOpen

  • isOpen(): boolean

isTraceEnabled

  • isTraceEnabled(): boolean

isWarnEnabled

  • isWarnEnabled(): boolean

Protected processMessages

  • processMessages(): void

toString

  • toString(): string

trace

  • trace(msg: string, error?: Error | null): void

tracec

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

warn

  • warn(msg: string, error?: Error | null): void

warnc

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

Generated using TypeDoc