Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MessageBufferLoggerImpl

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

Methods

close

  • close(): void

debug

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

debugc

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

    • msg: function
        • (): string
        • Returns string

    • Optional error: function
        • (): Error | null
        • Returns Error | null

    Returns void

Protected doLog

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

error

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

errorc

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

    • msg: function
        • (): string
        • Returns string

    • Optional error: function
        • (): Error | null
        • Returns Error | null

    Returns void

fatal

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

fatalc

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

    • msg: function
        • (): string
        • Returns string

    • Optional error: function
        • (): Error | null
        • Returns Error | null

    Returns void

getLogLevel

getMessages

  • getMessages(): string[]

info

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

infoc

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

    • msg: function
        • (): string
        • Returns string

    • Optional error: function
        • (): Error | null
        • Returns Error | null

    Returns 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

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

tracec

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

    • msg: function
        • (): string
        • Returns string

    • Optional error: function
        • (): Error | null
        • Returns Error | null

    Returns void

warn

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

warnc

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

    • msg: function
        • (): string
        • Returns string

    • Optional error: function
        • (): Error | null
        • Returns Error | null

    Returns void

Generated using TypeDoc