[I] Logger
Filters and forwards log messages to a sink. Logging warnings or errors does not report program diagnostics or change compilation success.
Methods
Section titled “Methods”error()
Section titled “error()”error(message): void;Logs an error without a code or a program diagnostic.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
message | string |
Returns
Section titled “Returns”void
log(log): void;Filters by severity, resolves the optional target, and forwards the entry to the sink.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
log | LogInfo |
Returns
Section titled “Returns”void
trace()
Section titled “trace()”trace(message): void;Logs a trace message without a code, subject to the configured minimum log level.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
message | string |
Returns
Section titled “Returns”void
warn()
Section titled “warn()”warn(message): void;Logs a warning without a code or a program diagnostic.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
message | string |
Returns
Section titled “Returns”void