The NylasConnect.logger
class allows access to the internal logger instance and provides the standard logging methods (error
, warn
, info
, and debug
).
const logger = nylasConnect.logger;logger.info('Custom log message');logger.error('Error message');
Methods
Section titled “Methods”Method | Type | Description |
---|---|---|
debug | (message: string, ...args: any[]) => void | Log debug messages. |
error | (message: string, ...args: any[]) => void | Log error messages. |
info | (message: string, ...args: any[]) => void | Log informational messages. |
warn | (message: string, ...args: any[]) => void | Log warning messages. |