diff --git a/logger.go b/logger.go index 1159006..eaa6737 100644 --- a/logger.go +++ b/logger.go @@ -6,17 +6,11 @@ import ( "github.com/go-kit/kit/log" ) -// Logger sends pipeline info and errors to logging endpoint. The logger could be -// used to send to STDOUT, Syslog, or any number of distributed log collecting platforms. -type Logger interface { - Log(keyvals ...interface{}) error -} - // SetLogger adds the ability to change the logger so that external packages // can control the logging for this package -func SetLogger(l Logger) { +func SetLogger(l log.Logger) { logger = l } // specify a default logger so that we don't end up with panics. -var logger Logger = log.NewPrefixLogger(os.Stderr) +var logger log.Logger = log.NewPrefixLogger(os.Stderr)