2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-09-05 08:35:22 +00:00
Files
the-guard-bot/utils/log.js
2017-10-06 18:15:34 +02:00

24 lines
391 B
JavaScript

'use strict';
const { inspect } = require('util');
/**
* @param {Error} err
* Logs errors to console
* @returns {undefined}
*/
const logError = err => console.error(err);
/**
* @param {Object} value
* Echos the value of a value.
* @returns {undefined}
*/
const print = value =>
console.log(inspect(value, { colors: true, depth: null }));
module.exports = {
logError,
print
};