2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-28 04:37:52 +00:00

22 lines
343 B
JavaScript
Raw Normal View History

2017-07-24 17:12:38 +02:00
'use strict';
const { inspect } = require('util');
/**
* @param {Error} err
* Logs errors to console
*/
const logError = err => console.error(err);
2017-09-24 18:34:32 +02:00
/**
* @param {Object} value
* Echos the value of a value.
*/
2017-07-24 17:12:38 +02:00
const print = value =>
console.log(inspect(value, { colors: true, depth: null }));
module.exports = {
logError,
print
};