Updated logger function
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user