This commit is contained in:
2
log.js
2
log.js
@ -3,7 +3,7 @@ function log(level, message, ...args) {
|
||||
const now = new Date().toISOString();
|
||||
const levelLabel = `[${level.toUpperCase()}]`.padEnd(8);
|
||||
|
||||
log.info(`${now} ${levelLabel} ${message}`, ...args);
|
||||
console.log(`${now} ${levelLabel} ${message}`, ...args);
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
Reference in New Issue
Block a user