1 package log 2 3 import ( 4 "io" 5 6 "github.com/go-kit/log" 7 ) 8 9 // NewLogfmtLogger returns a logger that encodes keyvals to the Writer in 10 // logfmt format. Each log event produces no more than one call to w.Write. 11 // The passed Writer must be safe for concurrent use by multiple goroutines if 12 // the returned Logger will be used concurrently. 13 func NewLogfmtLogger(w io.Writer) Logger { 14 return log.NewLogfmtLogger(w) 15 } 16