style: Log time

This commit is contained in:
lejianwen 2025-02-07 17:57:28 +08:00
parent 5011e2b7c1
commit 8cac15f7dd

View File

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