Options
All
  • Public
  • Public/Protected
  • All
Menu

Simple logger, that logs to the console. If the console is unavailable will throw exception.

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

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

debugc

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

Protected doLog

error

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

errorc

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

fatal

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

fatalc

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

getLogLevel

info

  • info(msg: string | LogData, 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

trace

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

tracec

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

warn

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

warnc

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

Generated using TypeDoc