Skip to main content

Interface: ILogger

Defined in: projects/framework/src/lib/utils/logger/ILogger.ts:41

Methods

debug()

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

Defined in: projects/framework/src/lib/utils/logger/ILogger.ts:58

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

Parameters

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

Returns

void


error()

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

Defined in: projects/framework/src/lib/utils/logger/ILogger.ts:76

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

Parameters

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

Returns

void


fatal()

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

Defined in: projects/framework/src/lib/utils/logger/ILogger.ts:82

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

Parameters

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

Returns

void


has()

has(level: LogLevel): boolean

Defined in: projects/framework/src/lib/utils/logger/ILogger.ts:46

Checks whether a level is supported.

Parameters

ParameterTypeDescription
levelLogLevelThe level to check.

Returns

boolean


info()

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

Defined in: projects/framework/src/lib/utils/logger/ILogger.ts:64

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

Parameters

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

Returns

void


trace()

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

Defined in: projects/framework/src/lib/utils/logger/ILogger.ts:52

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

Parameters

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

Returns

void


warn()

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

Defined in: projects/framework/src/lib/utils/logger/ILogger.ts:70

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

Parameters

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

Returns

void


write()

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

Defined in: projects/framework/src/lib/utils/logger/ILogger.ts:89

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

Parameters

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

Returns

void