change logger

This commit is contained in:
grimhilt
2023-03-28 16:57:44 +02:00
parent bffcdafe7a
commit 94c7a7176b
11 changed files with 41 additions and 49 deletions

View File

@@ -1,9 +0,0 @@
const DEBUG = (function () {
const timestamp = function () {};
timestamp.toString = () => "[" + new Date().toLocaleString() + "]";
return { log: console.log.bind(console, "%s", timestamp) };
})();
module.exports = {
DEBUG,
};