kinesis-consumer/logger.go

17 lines
354 B
Go
Raw Normal View History

package connector
import (
"os"
2015-05-26 04:51:53 +00:00
"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
2015-05-27 01:50:34 +00:00
func SetLogger(l log.Logger) {
logger = l
}
2015-05-26 04:51:53 +00:00
// specify a default logger so that we don't end up with panics.
var logger log.Logger = log.NewLogfmtLogger(os.Stderr)