Skip to main content

Class: Logger

Implements

Constructors

constructor

โ€ข new Logger(level)

Parameters

NameType
levelLogLevel

Defined in

projects/framework/src/lib/utils/logger/Logger.ts:6

Properties

level

โ€ข level: LogLevel

Defined in

projects/framework/src/lib/utils/logger/Logger.ts:4


levels

โ–ช Static Protected Readonly levels: Map<LogLevel, LogMethods>

Defined in

projects/framework/src/lib/utils/logger/Logger.ts:44

Methods

debug

โ–ธ debug(...values): void

Alias of ILogger.write with LogLevel.Debug as level.

Parameters

NameType
...valuesreadonly unknown[]

Returns

void

Implementation of

ILogger.debug

Defined in

projects/framework/src/lib/utils/logger/Logger.ts:18


error

โ–ธ error(...values): void

Alias of ILogger.write with LogLevel.Error as level.

Parameters

NameType
...valuesreadonly unknown[]

Returns

void

Implementation of

ILogger.error

Defined in

projects/framework/src/lib/utils/logger/Logger.ts:30


fatal

โ–ธ fatal(...values): void

Alias of ILogger.write with LogLevel.Fatal as level.

Parameters

NameType
...valuesreadonly unknown[]

Returns

void

Implementation of

ILogger.fatal

Defined in

projects/framework/src/lib/utils/logger/Logger.ts:34


has

โ–ธ has(level): boolean

Checks whether a level is supported.

Parameters

NameType
levelLogLevel

Returns

boolean

Implementation of

ILogger.has

Defined in

projects/framework/src/lib/utils/logger/Logger.ts:10


info

โ–ธ info(...values): void

Alias of ILogger.write with LogLevel.Info as level.

Parameters

NameType
...valuesreadonly unknown[]

Returns

void

Implementation of

ILogger.info

Defined in

projects/framework/src/lib/utils/logger/Logger.ts:22


trace

โ–ธ trace(...values): void

Alias of ILogger.write with LogLevel.Trace as level.

Parameters

NameType
...valuesreadonly unknown[]

Returns

void

Implementation of

ILogger.trace

Defined in

projects/framework/src/lib/utils/logger/Logger.ts:14


warn

โ–ธ warn(...values): void

Alias of ILogger.write with LogLevel.Warn as level.

Parameters

NameType
...valuesreadonly unknown[]

Returns

void

Implementation of

ILogger.warn

Defined in

projects/framework/src/lib/utils/logger/Logger.ts:26


write

โ–ธ write(level, ...values): void

Writes the log message given a level and the value(s).

Parameters

NameType
levelLogLevel
...valuesreadonly unknown[]

Returns

void

Implementation of

ILogger.write

Defined in

projects/framework/src/lib/utils/logger/Logger.ts:38