Skip to main content

Class: ServerLogger

Hierarchy

  • Logger

    ServerLogger

Constructors

constructor

new ServerLogger(name?, enabled?, style?)

Parameters

NameTypeDefault value
namestring""
enabledbooleantrue
styleChalkundefined

Overrides

Logger.constructor

Properties

_logLevel

Protected _logLevel: LogLevels = "silent"

Inherited from

Logger._logLevel


allowedLogs

Protected allowedLogs: LogLevels[] = []

Inherited from

Logger.allowedLogs


debug

debug: (...args: any[]) => void

Type declaration

▸ (...args): void

Parameters
NameType
...argsany[]
Returns

void

Inherited from

Logger.debug


enabled

Protected Readonly enabled: boolean

Inherited from

Logger.enabled


error

error: (...args: any[]) => void

Type declaration

▸ (...args): void

Parameters
NameType
...argsany[]
Returns

void

Inherited from

Logger.error


group

group: (...args: any[]) => void

Type declaration

▸ (...args): void

Parameters
NameType
...argsany[]
Returns

void

Inherited from

Logger.group


groupCollapsed

groupCollapsed: (...args: any[]) => void

Type declaration

▸ (...args): void

Parameters
NameType
...argsany[]
Returns

void

Inherited from

Logger.groupCollapsed


groupEnd

groupEnd: (...args: any[]) => void

Type declaration

▸ (...args): void

Parameters
NameType
...argsany[]
Returns

void

Inherited from

Logger.groupEnd


indentLevel

Protected indentLevel: number = 0

Inherited from

Logger.indentLevel


info

info: (...args: any[]) => void

Type declaration

▸ (...args): void

Parameters
NameType
...argsany[]
Returns

void

Inherited from

Logger.info


log

log: (...args: any[]) => void

Type declaration

▸ (...args): void

Parameters
NameType
...argsany[]
Returns

void

Inherited from

Logger.log


name

Protected Readonly name: string

Inherited from

Logger.name


notice

notice: (...args: any[]) => void

Type declaration

▸ (...args): void

Deprecated

use log() instead

Parameters
NameType
...argsany[]
Returns

void

Inherited from

Logger.notice


verbose

verbose: (...args: any[]) => void

Type declaration

▸ (...args): void

Deprecated

use debug() instead

Parameters
NameType
...argsany[]
Returns

void

Inherited from

Logger.verbose


warn

warn: (...args: any[]) => void

Type declaration

▸ (...args): void

Parameters
NameType
...argsany[]
Returns

void

Inherited from

Logger.warn

Accessors

logLevel

get logLevel(): LogLevels

Returns

LogLevels

Inherited from

Logger.logLevel

set logLevel(val): void

Parameters

NameType
valstring

Returns

void

Inherited from

Logger.logLevel

Methods

getIndent

Protected getIndent(): string

Returns

string

Inherited from

Logger.getIndent


indentDown

Protected indentDown(): void

Returns

void

Inherited from

Logger.indentDown


indentUp

Protected indentUp(): void

Returns

void

Inherited from

Logger.indentUp


levelAllowed

Protected levelAllowed(expected): boolean

Parameters

NameType
expectedLogLevels

Returns

boolean

Inherited from

Logger.levelAllowed


nameAndFirst

nameAndFirst(first): string

Parameters

NameType
firststring

Returns

string

Overrides

Logger.nameAndFirst