Add time to log messages

This commit is contained in:
Ajay 2022-05-24 23:31:43 -04:00
parent 4738c1897f
commit eda7aac5ef

View file

@ -4,9 +4,9 @@ window["SBLogs"] = {
};
export function logDebug(message: string) {
window["SBLogs"].debug.push(message);
window["SBLogs"].debug.push(`[${new Date().toISOString()}] ${message}`);
}
export function logWarn(message: string) {
window["SBLogs"].warn.push(message);
window["SBLogs"].warn.push(`[${new Date().toISOString()}] ${message}`);
}