Console Module

Import

import console from 'console';

The console module works in the development environment to allow developers to log debug info to a Chrome browser. To add support for this feature and to start seeing console messages in the Chrome console, install the Chrome Logger extensionarrow-up-right

Standard javascript browser console commands are supported (log, warn, error, info, table, assert, count, time, timeEnd, group, groupEnd, groupCollapsed);

📘Note

There is some overhead associated with using the console logger, so time and timeEnd should be considered inaccurate.

JavaScript

console.time('load');
console.log(org.objects.accounts.find().limit(1).paths('created').next());
console.timeEnd('load');

Last updated

Was this helpful?