Home > @i2analyze/i2connect > ILogger > setLogLevel
ILogger.setLogLevel() method
Warning: This API is now obsolete.
Version 2 of the API introduced support for controlling the log level from a configuration file or an environment variable. This function will be removed in the next major version of the API.
Sets the minimum level, or severity, of messages that will be emitted.
Signature:
setLogLevel(level: LogLevel): void;
Introduced: API version 1.0
Parameters
Parameter | Type | Description |
---|---|---|
level | LogLevel | The minimum logging level to set. |
Returns:
void
Remarks
Be aware that calling this method overrides any other setting for the log level.