LTSV Formatter for Logrus(github.com/sirupsen/logrus)
package main
import (
"github.com/doloopwhile/logrusltsv"
log "github.com/sirupsen/logrus"
)
func main() {
log.SetFormatter(&logrusltsv.Formatter{})
log.WithFields(log.Fields{
"animal": "walrus",
"size": 10,
}).Info("A walrus appears")
// => time:2015-03-23T12:24:35+09:00\tlevel:info\tmsg:A walrus appears\tanimal:walrus\tsize:10
}