aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/go-kit/kit/log/logfmt_logger.go
blob: 51cde2c566ff99552911949530b4339cf5fa419f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package log

import (
	"io"

	"github.com/go-kit/log"
)

// NewLogfmtLogger returns a logger that encodes keyvals to the Writer in
// logfmt format. Each log event produces no more than one call to w.Write.
// The passed Writer must be safe for concurrent use by multiple goroutines if
// the returned Logger will be used concurrently.
func NewLogfmtLogger(w io.Writer) Logger {
	return log.NewLogfmtLogger(w)
}
nihil fit ex nihilo