1
0
mirror of https://github.com/KubaPro010/fm-dx-webserver.git synced 2026-02-26 22:13:53 +01:00
This commit is contained in:
NoobishSVK
2024-01-22 20:33:45 +01:00
parent c72153763e
commit 5e3a0a466c
21 changed files with 1125 additions and 1180 deletions

17
console.js Normal file
View File

@@ -0,0 +1,17 @@
const { verboseMode } = require('./userconfig');
const MESSAGE_PREFIX = {
INFO: "\x1b[32m[INFO]\x1b[0m",
DEBUG: "\x1b[36m[DEBUG]\x1b[0m",
};
const logInfo = (...messages) => console.log(MESSAGE_PREFIX.INFO, ...messages);
const logDebug = (...messages) => {
if (verboseMode) {
console.log(MESSAGE_PREFIX.DEBUG, ...messages);
}
};
module.exports = {
logInfo, logDebug
}