influxdb/log.go

15 lines
408 B
Go
Raw Normal View History

2016-10-20 14:38:23 +00:00
package chronograf
// Logger represents an abstracted structured logging implementation. It
// provides methods to trigger log messages at various alert levels and a
// WithField method to set keys for a structured log message.
type Logger interface {
Info(...interface{})
Warn(...interface{})
Debug(...interface{})
Panic(...interface{})
Error(...interface{})
WithField(string, interface{}) Logger
}