chore: better log time

This commit is contained in:
Skyxim 2023-02-15 22:39:28 +08:00
parent 28c7de6185
commit b50071ed37

View file

@ -18,6 +18,10 @@ var (
func init() { func init() {
log.SetOutput(os.Stdout) log.SetOutput(os.Stdout)
log.SetLevel(log.DebugLevel) log.SetLevel(log.DebugLevel)
log.SetFormatter(&log.TextFormatter{
FullTimestamp: true,
TimestampFormat: "2006-01-02T15:04:05.999999999Z07:00",
})
} }
type Event struct { type Event struct {