Skip to content
This repository has been archived by the owner on Jan 1, 2021. It is now read-only.
/ logrusltsv Public archive

LTSV Formatter for Logrus

License

Notifications You must be signed in to change notification settings

doloopwhile/logrusltsv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logrus-ltsv

LTSV Formatter for Logrus(github.com/sirupsen/logrus)

Usage

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
}

About

LTSV Formatter for Logrus

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages