Skip to content

Class: Logger

utilities/logging.Logger

Constructors

constructor

new Logger(parent, name, level?, raven?): Logger

Parameters

NameType
parentnull | Logger
namestring
level?null | LogLevel
raven?any

Returns

Logger

Defined in

src/utilities/logging.ts:86

Methods

capture

capture(exc, opts?, ...args): void

Parameters

NameType
excError
opts?any
...argsany[]

Returns

void

Defined in

src/utilities/logging.ts:177


crumb

crumb(...args): any

Parameters

NameType
...argsany[]

Returns

any

Defined in

src/utilities/logging.ts:172


debug

debug(message, ...optionalParams): void

Parameters

NameType
messageany
...optionalParamsany[]

Returns

void

Defined in

src/utilities/logging.ts:132


debugColor

debugColor(message, colors, ...optionalParams): void

Parameters

NameType
messageany
colorsstring[]
...optionalParamsany[]

Returns

void

Defined in

src/utilities/logging.ts:136


error

error(message, ...optionalParams): void

Parameters

NameType
messageany
...optionalParamsany[]

Returns

void

Defined in

src/utilities/logging.ts:164


errorColor

errorColor(message, colors, ...optionalParams): void

Parameters

NameType
messageany
colorsstring[]
...optionalParamsany[]

Returns

void

Defined in

src/utilities/logging.ts:168


get

get(name, level?): Logger

Parameters

NameType
namestring
level?LogLevel

Returns

Logger

Defined in

src/utilities/logging.ts:117


hi

hi(core): void

Parameters

NameType
coreCore

Returns

void

Defined in

src/utilities/logging.ts:104


info

info(message, ...optionalParams): void

Parameters

NameType
messageany
...optionalParamsany[]

Returns

void

Defined in

src/utilities/logging.ts:140


infoColor

infoColor(message, colors, ...optionalParams): void

Parameters

NameType
messageany
colorsstring[]
...optionalParamsany[]

Returns

void

Defined in

src/utilities/logging.ts:144


invoke

invoke(level, message, optionalParams?): void

Parameters

NameType
levelnumber
messagestring
optionalParams?any[]

Returns

void

Defined in

src/utilities/logging.ts:259


invokeColor

invokeColor(level, message, colors, ...optionalParams): void

Parameters

NameType
levelnumber
messageany
colorsstring | string[]
...optionalParamsany[]

Returns

void

Defined in

src/utilities/logging.ts:192


verbose

verbose(message, ...optionalParams): void

Parameters

NameType
messageany
...optionalParamsany[]

Returns

void

Defined in

src/utilities/logging.ts:124


verboseColor

verboseColor(message, colors, ...optionalParams): void

Parameters

NameType
messageany
colorsstring[]
...optionalParamsany[]

Returns

void

Defined in

src/utilities/logging.ts:128


warn

warn(message, ...optionalParams): void

Parameters

NameType
messageany
...optionalParamsany[]

Returns

void

Defined in

src/utilities/logging.ts:148


warnColor

warnColor(message, colors, ...optionalParams): void

Parameters

NameType
messageany
colorsstring[]
...optionalParamsany[]

Returns

void

Defined in

src/utilities/logging.ts:152


warning

warning(message, ...optionalParams): void

Parameters

NameType
messageany
...optionalParamsany[]

Returns

void

Defined in

src/utilities/logging.ts:156


warningColor

warningColor(message, colors, ...optionalParams): void

Parameters

NameType
messageany
colorsstring[]
...optionalParamsany[]

Returns

void

Defined in

src/utilities/logging.ts:160