traefik/vendor/github.com/ArthurHlt/go-eureka-client/eureka/debug.go

22 lines
361 B
Go
Raw Normal View History

2017-02-07 21:33:23 +00:00
package eureka
import (
"github.com/ArthurHlt/gominlog"
"log"
)
var logger *gominlog.MinLog
func GetLogger() *log.Logger {
return logger.GetLogger()
}
func SetLogger(loggerLog *log.Logger) {
logger.SetLogger(loggerLog)
}
func init() {
// Default logger uses the go default log.
logger = gominlog.NewClassicMinLogWithPackageName("go-eureka-client")
}