[feature] add log tag to logger.log

This commit is contained in:
Janis
2023-06-29 21:49:33 +02:00
parent afe2376ea0
commit ba5930cadc

View File

@@ -1,7 +1,7 @@
export default class Logger { export default class Logger {
// Log message to the console // Log message to the console
public static log(message: string, data: object | null = null): void { public static log(message: string, data: object | null = null): void {
console.log(`%c${message}`.trim(), "color: gray", data ?? ""); console.log(`[Log] %c${message}`.trim(), "color: gray", data ?? "");
} }
// Log warning to the console // Log warning to the console