Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
Logger is a logrus logger adapter that implements logger interface.
func New ¶
New returns a logger.
Example ¶
logger := New(logrus.New())
logger.Debug("debug")
logger.Debugf("debugf")
logger.Debugln("debugln")
logger.Info("info")
logger.Infof("infof")
logger.Infoln("infoln")
logger.Warn("warn")
logger.Warnf("warnf")
logger.Warnln("warnln")
logger.Error("error")
logger.Errorf("errorf")
logger.Errorln("errorln")
//logger.Fatal("fatal")
//logger.Fatalf("fatalf")
//logger.Fatalln("fatalln")
Click to show internal directories.
Click to hide internal directories.