kinesis-consumer/logger.go
2015-05-26 18:50:34 -07:00

16 lines
354 B
Go

package connector
import (
"os"
"github.com/go-kit/kit/log"
)
// SetLogger adds the ability to change the logger so that external packages
// can control the logging for this package
func SetLogger(l log.Logger) {
logger = l
}
// specify a default logger so that we don't end up with panics.
var logger log.Logger = log.NewPrefixLogger(os.Stderr)