mirror of
https://github.com/DerTyp7/teamspeak-obs-overlay.git
synced 2025-10-29 12:52:09 +01:00
[feature] add log tag to logger.log
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user