Home > @i2analyze/i2connect > createLogger
createLogger() function
Creates or retrieves a logger object with the specified identifier.
Signature:
export declare function createLogger(id?: string): ILogger;
Introduced: API version 1.0
Parameters
Parameter | Type | Description |
---|---|---|
id | string | The identifier of the logger, which is used to find configuration settings, and also to name any resulting log file. |
Returns:
The specified logger object, or the default logger for the i2 Connect server if no identifier was provided.