Codebase list golang-github-go-kit-kit / 4e4efb3
define and invoke log.DefaultLogger where appropriate Peter Bourgon 9 years ago
2 changed file(s) with 7 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 package log
1
2 // DefaultLogger is used by gokit components. By default, it's a PrefixLogger
3 // that writes to the stdlib log.
4 var DefaultLogger = NewPrefixLogger(StdlibWriter{})
99
1010 "github.com/apache/thrift/lib/go/thrift"
1111
12 "github.com/peterbourgon/gokit/log"
1213 "github.com/peterbourgon/gokit/tracing/zipkin/_thrift/gen-go/scribe"
1314 )
1415
8182 case <-c.sendc:
8283 c.nextSend = time.Now().Add(c.batchInterval)
8384 if err := c.send(c.batch); err != nil {
85 log.DefaultLogger.Log("caller", log.DefaultCaller, "error", err.Error())
8486 continue
8587 }
8688 c.batch = c.batch[:0]