@cryptotaxi247 / kubo / commits / 94bfc8121

docs(eventlog/formatter)

@jbenet License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>

Brian Tiger Chow committed Nov 17, 2014 at 01:27 UTC 94bfc8121cc9d8d65feb50ae56bbe8941d5f81bd
1 file changed +2
util/eventlog/polite_json_formatter.go
+2
@@ -7,6 +7,8 @@ import (
7 "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/maybebtc/logrus"
8 )
9
10 +// PoliteJSONFormatter marshals entries into JSON encoded slices (without
11 +// overwriting user-provided keys). How polite of it!
12 type PoliteJSONFormatter struct{}
13
14 func (f *PoliteJSONFormatter) Format(entry *logrus.Entry) ([]byte, error) {