Signed-off-by: hidewrong <hidewrong@outlook.com> (#14792)

Signed-off-by: hidewrong <hidewrong@outlook.com>
This commit is contained in:
hidewrong
2025-01-17 23:59:29 +08:00
committed by GitHub
parent b76f7fed2f
commit 15df13c7e6
5 changed files with 8 additions and 4 deletions

View File

@@ -60,7 +60,7 @@ func main() {
switch format {
case "text":
formatter := new(prefixed.TextFormatter)
formatter.TimestampFormat = "2006-01-02 15:04:05"
formatter.TimestampFormat = time.DateTime
formatter.FullTimestamp = true
// If persistent log files are written - we disable the log messages coloring because
// the colors are ANSI codes and seen as gibberish in the log files.