2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-23 10:28:09 +00:00

24 lines
391 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
2017-10-06 18:15:28 +02:00
* @returns {undefined}
*/
const logError = err => console.error(err);
2017-09-24 18:34:32 +02:00
/**
* @param {Object} value
* Echos the value of a value.
2017-10-06 18:15:28 +02:00
* @returns {undefined}
*/
2017-07-24 17:12:38 +02:00
const print = value =>
console.log(inspect(value, { colors: true, depth: null }));
module.exports = {
logError,
print
};