Add more verbose logging to hidden variable

This commit is contained in:
Ajay
2022-05-19 19:22:59 -04:00
parent 160de56a71
commit f68282decc
2 changed files with 23 additions and 3 deletions

12
src/utils/logger.ts Normal file
View File

@@ -0,0 +1,12 @@
window["SBLogs"] = {
debug: [],
warn: []
};
export function logDebug(message: string) {
window["SBLogs"].debug.push(message);
}
export function logWarn(message: string) {
window["SBLogs"].warn.push(message);
}