Skip to main content

Class: Logger

Defined in: projects/framework/src/lib/utils/logger/Logger.ts:3

Implements

Constructors

new Logger()

new Logger(level: LogLevel): Logger

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

Parameters

ParameterType
levelLogLevel

Returns

Logger

Properties

level

level: LogLevel

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


levels

protected readonly static levels: Map<LogLevel, LogMethods>

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

Methods

debug()

debug(...values: readonly unknown[]): void

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

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

Parameters

ParameterTypeDescription
...valuesreadonly unknown[]The values to log.

Returns

void

Implementation of

ILogger.debug


error()

error(...values: readonly unknown[]): void

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

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

Parameters

ParameterTypeDescription
...valuesreadonly unknown[]The values to log.

Returns

void

Implementation of

ILogger.error


fatal()

fatal(...values: readonly unknown[]): void

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

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

Parameters

ParameterTypeDescription
...valuesreadonly unknown[]The values to log.

Returns

void

Implementation of

ILogger.fatal


has()

has(level: LogLevel): boolean

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

Checks whether a level is supported.

Parameters

ParameterTypeDescription
levelLogLevelThe level to check.

Returns

boolean

Implementation of

ILogger.has


info()

info(...values: readonly unknown[]): void

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

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

Parameters

ParameterTypeDescription
...valuesreadonly unknown[]The values to log.

Returns

void

Implementation of

ILogger.info


trace()

trace(...values: readonly unknown[]): void

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

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

Parameters

ParameterTypeDescription
...valuesreadonly unknown[]The values to log.

Returns

void

Implementation of

ILogger.trace


warn()

warn(...values: readonly unknown[]): void

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

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

Parameters

ParameterTypeDescription
...valuesreadonly unknown[]The values to log.

Returns

void

Implementation of

ILogger.warn


write()

write(level: LogLevel, ...values: readonly unknown[]): void

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

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

Parameters

ParameterTypeDescription
levelLogLevelThe log level.
...valuesreadonly unknown[]The values to log.

Returns

void

Implementation of

ILogger.write