aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils/logger.ts
blob: 2d3a1b9295423bcaea0a42374c5c1d8846fc9ceb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
window["SBLogs"] = {
    debug: [],
    warn: []
};

export function logDebug(message: string) {
    window["SBLogs"].debug.push(`[${new Date().toISOString()}] ${message}`);
}

export function logWarn(message: string) {
    window["SBLogs"].warn.push(`[${new Date().toISOString()}] ${message}`);
}