mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-28 05:47:51 +08:00
docs(eventlog/formatter)
@jbenet License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
This commit is contained in:
parent
061200452f
commit
94bfc8121c
@ -7,6 +7,8 @@ import (
|
||||
"github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/maybebtc/logrus"
|
||||
)
|
||||
|
||||
// PoliteJSONFormatter marshals entries into JSON encoded slices (without
|
||||
// overwriting user-provided keys). How polite of it!
|
||||
type PoliteJSONFormatter struct{}
|
||||
|
||||
func (f *PoliteJSONFormatter) Format(entry *logrus.Entry) ([]byte, error) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user