Updated logger function

This commit is contained in:
2024-12-29 19:07:56 +01:00
parent b1e31f8e27
commit b5367c5c60

View File

@@ -33,7 +33,7 @@ export function log(m: string, t: LogType, c?: CustomColorProps): void {
const logType = AllLogs[t].m const logType = AllLogs[t].m
const logColor = AllLogs[t].c const logColor = AllLogs[t].c
const message = `[${logType}] ${time} | ${m}` const message = `${time} - [${logType}] | ${m}`
if (!c) { if (!c) {
if (t === "info") { if (t === "info") {
console.log(message) console.log(message)