Skip to content

NylasConnect.logger class

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');
MethodTypeDescription
debug(message: string, ...args: any[]) => voidLog debug messages.
error(message: string, ...args: any[]) => voidLog error messages.
info(message: string, ...args: any[]) => voidLog informational messages.
warn(message: string, ...args: any[]) => voidLog warning messages.