Skip to content

Logging

The iam-client-library default logger streams logs to console. You can change default logger to custom by calling setLogger(customLogger) function during initialization.

customLogger must derive from the ILogger abstract class and implement abstract function:

protected abstract _log(message: unknown, level: LogLevel): void;

Example implementation can be found here: ConsoleLogger