-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
29 lines (22 loc) · 858 Bytes
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Debug = {}
Debug.Log = function (msg) {
console.log(`${new Date().toISOString()}\x1b[47m\x1b[30m [LOGS] \x1b[0m ${msg}`);
}
Debug.LogInfo = function (msg) {
console.log(`${new Date().toISOString()}\x1b[46m\x1b[37m [INFO] \x1b[0m ${msg}`);
}
Debug.Info = function (msg) {
console.log(`${new Date().toISOString()}\x1b[46m\x1b[37m [INFO] \x1b[0m ${msg}`);
}
Debug.LogWarn = function (msg) {
console.log(`${new Date().toISOString()}\x1b[43m\x1b[30m [WARN] \x1b[0m ${msg}`);
}
Debug.Warn = function (msg) {
console.log(`${new Date().toISOString()}\x1b[43m\x1b[30m [WARN] \x1b[0m ${msg}`);
}
Debug.LogError = function (msg) {
console.log(`\x1b[41m\x1b[37m${new Date().toISOString()} [ERROR] \x1b[0m ${msg}`);
}
Debug.Error = function (msg) {
console.log(`\x1b[41m\x1b[37m${new Date().toISOString()} [ERROR] \x1b[0m ${msg}`);
}