Documentation
¶
Index ¶
- func AddFlags(fs *flag.FlagSet)
- func Debugf(format string, args ...interface{})
- func Debugln(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Errorln(args ...interface{})
- func Infof(format string, args ...interface{})
- func Infoln(args ...interface{})
- func Orig() *logrus.Logger
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFlags ¶
AddFlags adds the flags used by this package to the given FlagSet. That's useful if working with a custom FlagSet. The init function of this package adds the flags to flag.CommandLine anyway. Thus, it's usually enough to call flag.Parse() to make the logging flags take effect.
func Debugf ¶
func Debugf(format string, args ...interface{})
Debugf logs a message at level Debug on the standard logger.
func Debugln ¶
func Debugln(args ...interface{})
Debugln logs a message at level Debug on the standard logger.
func Errorf ¶
func Errorf(format string, args ...interface{})
Errorf logs a message at level Error on the standard logger.
func Errorln ¶
func Errorln(args ...interface{})
Errorln logs a message at level Error on the standard logger.
func Infof ¶
func Infof(format string, args ...interface{})
Infof logs a message at level Info on the standard logger.
Types ¶
type Logger ¶
type Logger interface { Debugln(...interface{}) Debugf(string, ...interface{}) Infoln(...interface{}) Infof(string, ...interface{}) Errorln(...interface{}) Errorf(string, ...interface{}) Output(calldepth int, s string) error With(key string, value interface{}) Logger }
Logger is the interface for loggers used in transporter components