Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtendedLogger ¶
type ExtendedLogger interface { Debug(args ...interface{}) Info(args ...interface{}) Print(args ...interface{}) Warn(args ...interface{}) Warning(args ...interface{}) Error(args ...interface{}) Debugf(format string, args ...interface{}) Infof(format string, args ...interface{}) Printf(format string, args ...interface{}) Warnf(format string, args ...interface{}) Warningf(format string, args ...interface{}) Errorf(format string, args ...interface{}) Debugln(args ...interface{}) Infoln(args ...interface{}) Println(args ...interface{}) Warnln(args ...interface{}) Warningln(args ...interface{}) Errorln(args ...interface{}) }
The ExtendedLogger interface matches the print methods with various severity levels provided by the loggers in the logrus library
func Adapt ¶
func Adapt(logger StdLogger) ExtendedLogger
Adapt a logger implementing the StdLogger interface to the ExtendedLogger by delegating all method implementations to one of Print(), Printf() or Println(). This allows us to support extended logging functionality without having to explicitly depend on a specific library such as logrus. If the logger argument is nil, a logger writing to io.Discard will be returned.
Click to show internal directories.
Click to hide internal directories.