Logger class

Constructors

Logger(any, (level: string, message: string) => void)

Properties

level
loggerFunction
LogLevels

Methods

alert(any)
critical(any)
debug(any)
defaultLoggerFunction(string, string)
emergency(any)
error(any)
info(any)
log(any, any)
notice(any)
warn(any)

Constructor Details

Logger(any, (level: string, message: string) => void)

new Logger(level: any, loggerFunction?: (level: string, message: string) => void)

Parameters

level

any

loggerFunction

(level: string, message: string) => void

Property Details

level

level: string

Property Value

string

loggerFunction

loggerFunction: (level: string, message: string) => void

Property Value

(level: string, message: string) => void

LogLevels

static LogLevels: { ALERT: string, CRITICAL: string, DEBUG: string, EMERGENCY: string, ERROR: string, INFO: string, NOTICE: string, WARNING: string }

Property Value

{ ALERT: string, CRITICAL: string, DEBUG: string, EMERGENCY: string, ERROR: string, INFO: string, NOTICE: string, WARNING: string }

Method Details

alert(any)

function alert(msg: any)

Parameters

msg

any

critical(any)

function critical(msg: any)

Parameters

msg

any

debug(any)

function debug(msg: any)

Parameters

msg

any

defaultLoggerFunction(string, string)

function defaultLoggerFunction(logLevel: string, msg: string)

Parameters

logLevel

string

msg

string

emergency(any)

function emergency(msg: any)

Parameters

msg

any

error(any)

function error(msg: any)

Parameters

msg

any

info(any)

function info(msg: any)

Parameters

msg

any

log(any, any)

function log(level: any, msg: any)

Parameters

level

any

msg

any

notice(any)

function notice(msg: any)

Parameters

msg

any

warn(any)

function warn(msg: any)

Parameters

msg

any