Core/Logger

Application logger.

Usage example:

const logger = require('utils/logger')({
    level: 'DEBUG',
});

// Log a string message
logger.debug('Some debug message');

// Log an object
let obj = { foo: 'bar' };
logger.info(obj);

// Log a closure.
let a = 1;
logger.error(function() { return a; });