Options
All
  • Public
  • Public/Protected
  • All
Menu

Abstract category logger, use as your base class for new type of loggers (it saves you a lot of work) and override doLog(CategoryLogMessage). The message argument provides full access to anything related to the logging event. If you just want the standard line of logging, call: this.createDefaultLogMessage(msg) on this class which will return you the formatted log message as string (e.g. the default loggers all use this).

Hierarchy

Implements

Index

Constructors

constructor

Methods

Protected createDefaultLogMessage

debug

  • debug(msg: string, ...categories: Category[]): void

debugc

  • debugc(msg: function, ...categories: Category[]): void

Protected doLog

error

  • error(msg: string, error: Error, ...categories: Category[]): void

errorc

  • errorc(msg: function, error: function, ...categories: Category[]): void

fatal

  • fatal(msg: string, error: Error, ...categories: Category[]): void

fatalc

  • fatalc(msg: function, error: function, ...categories: Category[]): void

Protected getRootCategory

info

  • info(msg: string, ...categories: Category[]): void

infoc

  • infoc(msg: function, ...categories: Category[]): void

log

  • log(level: LogLevel, msg: string, error: Error, ...categories: Category[]): void

logc

  • logc(level: LogLevel, msg: function, error: function, ...categories: Category[]): void

resolved

  • resolved(msg: string, error: Error, ...categories: Category[]): void

resolvedc

  • resolvedc(msg: function, error: function, ...categories: Category[]): void

trace

  • trace(msg: string, ...categories: Category[]): void

tracec

  • tracec(msg: function, ...categories: Category[]): void

warn

  • warn(msg: string, ...categories: Category[]): void

warnc

  • warnc(msg: function, ...categories: Category[]): void

Generated using TypeDoc