From 3c1cba2e810cd6849117dc0e00e5a2a3f68daede Mon Sep 17 00:00:00 2001 From: velvettear Date: Thu, 2 Nov 2023 11:39:19 +0100 Subject: [PATCH] fixed default log format --- format.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format.go b/format.go index 71010cc..ba5df7c 100644 --- a/format.go +++ b/format.go @@ -16,7 +16,7 @@ const PLACEHOLDER_TIMEDIFF = "$TIMEDIFF$" const PLACEHOLDER_EXTRAS = "$EXTRAS$" // current log format (defaults to: "$TIMESTAMP$ - [$LOGLEVEL$] > $MESSAGE ($EXTRAS$) [$TIMEDIFF$]") -var logFormat = "$TIMESTAMP$ - [$LOGLEVEL$] > $MESSAGE ($EXTRAS$) [$TIMEDIFF$]" +var logFormat = PLACEHOLDER_TIMESTAMP + " - [" + PLACEHOLDER_LOGLEVEL + "] > " + PLACEHOLDER_MESSAGE + "(" + PLACEHOLDER_EXTRAS + ") [" + PLACEHOLDER_TIMEDIFF + "]" // current date format (defaults to: "02.01.2006 15:04:05") var dateFormat = "02.01.2006 15:04:05"