shared/logging/format.go
func LogfmtFormat() log.Format {
	return log.FormatFunc(func(r *log.Record) []byte {
		common := []interface{}{r.KeyNames.Time, r.Time, r.KeyNames.Lvl, r.Lvl, r.KeyNames.Msg, r.Msg}
		buf := &bytes.Buffer{}

		logfmt(buf, common, 0, false)
		buf.Truncate(buf.Len() - 1)
		buf.WriteByte(' ')
		logfmt(buf, r.Ctx, 0, true)
		return buf.Bytes()
	})
}
func LogfmtFormat() log.Format {
	return log.FormatFunc(func(r *log.Record) []byte {
		common := []interface{}{r.KeyNames.Time, r.Time, r.KeyNames.Lvl, r.Lvl, r.KeyNames.Msg, r.Msg}
		buf := &bytes.Buffer{}

		logfmt(buf, common, 0, false)
		buf.Truncate(buf.Len() - 1)
		buf.WriteByte(' ')
		logfmt(buf, r.Ctx, 0, true)
		return buf.Bytes()
	})
}
// LogfmtFormat return a formatter for a text log file