BlueBase's Logger API allows you to log messages to any number of logging services.
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');
try {
...
} catch(e) {
BB.Logger.error('error happened', e);
}