2015-05-03 22:36:07 +00:00
|
|
|
package connector
|
|
|
|
|
|
2015-05-23 18:40:04 +00:00
|
|
|
import (
|
|
|
|
|
"os"
|
2015-05-26 04:51:53 +00:00
|
|
|
|
|
|
|
|
"github.com/go-kit/kit/log"
|
2015-05-23 18:40:04 +00:00
|
|
|
)
|
|
|
|
|
|
2015-05-23 06:38:06 +00:00
|
|
|
// 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) {
|
2015-05-23 06:38:06 +00:00
|
|
|
logger = l
|
|
|
|
|
}
|
2015-05-26 04:51:53 +00:00
|
|
|
|
|
|
|
|
// specify a default logger so that we don't end up with panics.
|
2016-02-03 05:04:22 +00:00
|
|
|
var logger log.Logger = log.NewLogfmtLogger(os.Stderr)
|