2 Tips
pavel edited this page 2021-07-07 00:57:27 +02:00

You can setup the default textformatter to display fulltimestamps like so

package main

import (
	log "github.com/sirupsen/logrus"
)

func init() {
	log.SetFormatter(&log.TextFormatter{FullTimestamp: true})
}

func main() {
	log.Println("Fulltimestamp here")
}