📔Logger

BlueBase's Logger API allows you to log messages to any number of logging services.

Working with the API

You can call logger for different console message modes:

BB.Logger.log('log bar');
BB.Logger.info('info bar');
BB.Logger.debug('debug bar');
BB.Logger.warn('warn bar');
BB.Logger.error('error bar');

When handling an error:

try {
    ...
} catch(e) {
    BB.Logger.error('error happened', e);
}

Integrations

To add support for a Logging Provider see this guide.

Last updated