Class: Logger
Defined in: projects/framework/src/lib/utils/logger/Logger.ts:3
Implements
Constructors
new Logger()
Defined in: projects/framework/src/lib/utils/logger/Logger.ts:6
Parameters
Parameter | Type |
---|---|
level | LogLevel |
Returns
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
: readonlyunknown
[]):void
Defined in: projects/framework/src/lib/utils/logger/Logger.ts:18
Alias of ILogger.write with LogLevel.Debug as level.
Parameters
Parameter | Type | Description |
---|---|---|
...values | readonly unknown [] | The values to log. |
Returns
void
Implementation of
error()
error(...
values
: readonlyunknown
[]):void
Defined in: projects/framework/src/lib/utils/logger/Logger.ts:30
Alias of ILogger.write with LogLevel.Error as level.
Parameters
Parameter | Type | Description |
---|---|---|
...values | readonly unknown [] | The values to log. |
Returns
void
Implementation of
fatal()
fatal(...
values
: readonlyunknown
[]):void
Defined in: projects/framework/src/lib/utils/logger/Logger.ts:34
Alias of ILogger.write with LogLevel.Fatal as level.
Parameters
Parameter | Type | Description |
---|---|---|
...values | readonly unknown [] | The values to log. |
Returns
void
Implementation of
has()
has(
level
:LogLevel
):boolean
Defined in: projects/framework/src/lib/utils/logger/Logger.ts:10
Checks whether a level is supported.
Parameters
Parameter | Type | Description |
---|---|---|
level | LogLevel | The level to check. |
Returns
boolean
Implementation of
info()
info(...
values
: readonlyunknown
[]):void
Defined in: projects/framework/src/lib/utils/logger/Logger.ts:22
Alias of ILogger.write with LogLevel.Info as level.
Parameters
Parameter | Type | Description |
---|---|---|
...values | readonly unknown [] | The values to log. |
Returns
void
Implementation of
trace()
trace(...
values
: readonlyunknown
[]):void
Defined in: projects/framework/src/lib/utils/logger/Logger.ts:14
Alias of ILogger.write with LogLevel.Trace as level.
Parameters
Parameter | Type | Description |
---|---|---|
...values | readonly unknown [] | The values to log. |
Returns
void
Implementation of
warn()
warn(...
values
: readonlyunknown
[]):void
Defined in: projects/framework/src/lib/utils/logger/Logger.ts:26
Alias of ILogger.write with LogLevel.Warn as level.
Parameters
Parameter | Type | Description |
---|---|---|
...values | readonly unknown [] | The values to log. |
Returns
void
Implementation of
write()
write(
level
:LogLevel
, ...values
: readonlyunknown
[]):void
Defined in: projects/framework/src/lib/utils/logger/Logger.ts:38
Writes the log message given a level and the value(s).
Parameters
Parameter | Type | Description |
---|---|---|
level | LogLevel | The log level. |
...values | readonly unknown [] | The values to log. |
Returns
void