Skip to content

Core Module: logger.js

Michael Barrett edited this page Jun 1, 2018 · 2 revisions
const logger = require('../../core/logger.js');

logger.log('hello, world!');

The logger.js module is Jankbot's logging system. It should be used over console.log for bookkeeping purposes.

logger.log(message)

Logs the given message.

logger.error(message)

Errors with the given message.