Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNullLogger ¶
func NewNullLogger() nullLogger
Types ¶
type Logger ¶
type Logger interface { WithField(key string, value interface{}) Logger WithFields(fields map[string]interface{}) Logger WithError(err error) Logger Debug(args ...interface{}) Debugln(args ...interface{}) Debugf(format string, args ...interface{}) Info(args ...interface{}) Infoln(args ...interface{}) Infof(format string, args ...interface{}) Print(args ...interface{}) Println(args ...interface{}) Printf(format string, args ...interface{}) Warning(args ...interface{}) Warningln(args ...interface{}) Warningf(format string, args ...interface{}) Error(args ...interface{}) Errorln(args ...interface{}) Errorf(format string, args ...interface{}) Fatal(args ...interface{}) Fatalln(args ...interface{}) Fatalf(format string, args ...interface{}) V(l int) bool }
Logger implements grpc's LoggerV2 interface while supporting structured logging by implementing an interface similar to logrus' FieldLogger or apex's Interface.
See:
Click to show internal directories.
Click to hide internal directories.