From 7412e79881c63d387e9c88edaf5c2315b0671995 Mon Sep 17 00:00:00 2001 From: Sebastian Cabrera Date: Wed, 11 Jun 2025 16:34:13 -0400 Subject: [PATCH] apply loglevel color to timestamp --- logger/logger.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logger/logger.go b/logger/logger.go index 0e41792..84cd3a4 100644 --- a/logger/logger.go +++ b/logger/logger.go @@ -26,7 +26,7 @@ const ( func logMessage(level, color, msg string, args ...any) { timestamp := time.Now().Format("2006-01-02 15:04:05") formatted := fmt.Sprintf(msg, args...) - output := fmt.Sprintf("[%s] %s[%s]%s %s\n", timestamp, color, level, colorReset, formatted) + output := fmt.Sprintf("%s[%s]%s %s[%s]%s %s\n", color, timestamp, colorReset, color, level, colorReset, formatted) fmt.Print(output) if level == LevelFatal {