lejianwen месяцев назад: 11
Родитель
Сommit
5660d40514
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      lib/logger/logger.go

+ 1 - 1
lib/logger/logger.go

@@ -21,7 +21,7 @@ type Config struct {
21 21
 func New(c *Config) *log.Logger {
22 22
 	log.SetFormatter(&nested.Formatter{
23 23
 		// HideKeys:        true,
24
-		TimestampFormat: "2006-01-02 15:04:05",
24
+		TimestampFormat: "[2006-01-02 15:04:05]",
25 25
 		NoColors:        true,
26 26
 		NoFieldsColors:  true,
27 27
 		//FieldsOrder:     []string{"name", "age"},