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