Initialize module and get base level functionality operating

This commit is contained in:
Oliver-Akins 2025-04-20 15:42:18 -06:00
parent 5741bc64e2
commit cb3bc7c86c
7 changed files with 67 additions and 0 deletions

22
module/utils/Logger.mjs Normal file
View file

@ -0,0 +1,22 @@
const augmentedProps = new Set([
`debug`,
`log`,
`error`,
`info`,
`warn`,
`group`,
`time`,
`timeEnd`,
`timeLog`,
`timeStamp`,
]);
/** @type {Console} */
export const Logger = new Proxy(console, {
get(target, prop, _receiver) {
if (augmentedProps.has(prop)) {
return target[prop].bind(target, __ID__, `|`);
};
return target[prop];
},
});