Is your feature request related to a problem? Please describe.
our application use self defined logger module , which is not log.Logger . but implements level logger interface{} .
but the reporter.grpc.WithLogger(logger log.Logger) only support log.Logger
type LevelLogger interface {
Debug(msg string)
Debugf(format string, v ...interface{})
Info(msg string)
Infof(format string, v ...interface{})
Warn(msg string)
Warnf(format string, v ...interface{})
Error(msg string)
Errorf(format string, v ...interface{})
}
Describe the solution you'd like
define a logger interface , so we can overwrite
Is your feature request related to a problem? Please describe. our application use self defined logger module , which is not log.Logger . but implements level logger interface{} .
but the reporter.grpc.WithLogger(logger log.Logger) only support log.Logger
type LevelLogger interface { Debug(msg string) Debugf(format string, v ...interface{}) Info(msg string) Infof(format string, v ...interface{}) Warn(msg string) Warnf(format string, v ...interface{}) Error(msg string) Errorf(format string, v ...interface{}) }
Describe the solution you'd like define a logger interface , so we can overwrite