SysBackup/logger.js
2022-08-08 14:39:35 +02:00

18 lines
506 B
JavaScript

const ansiColors = require('ansi-colors');
module.exports = {
info(message) {
console.log(ansiColors.bold.blue("🛈") + " " + ansiColors.bold(message));
},
warn(message) {
console.log(ansiColors.bold.yellow("⚠") + " " + ansiColors.bold(message));
},
error(message) {
console.log(ansiColors.red.red("✖") + " " + ansiColors.bold(message));
},
success(message) {
console.log(ansiColors.green("✔") + " " + ansiColors.bold(message));
}
}