Skip to content
Nicholas J edited this page Oct 17, 2015 · 1 revision

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")
}

Clone this wiki locally