Documentation ¶
Index ¶
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Debugln(args ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Errorln(args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(format string, args ...interface{})
- func Fatalln(args ...interface{})
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func Infoln(args ...interface{})
- func NewLogger() *logrus.Logger
- func Panic(args ...interface{})
- func Panicf(format string, args ...interface{})
- func Panicln(args ...interface{})
- func Print(args ...interface{})
- func Printf(format string, args ...interface{})
- func Println(args ...interface{})
- func SetJSONFormatter()
- func SetLevel(logLevel string)
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- func Warning(args ...interface{})
- func Warningf(format string, args ...interface{})
- func Warningln(args ...interface{})
- func Warnln(args ...interface{})
- type Fields
- type Logger
- type RetryLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debugf ¶
func Debugf(format string, args ...interface{})
Debugf package-level convenience method.
func Errorf ¶
func Errorf(format string, args ...interface{})
Errorf package-level convenience method.
func Fatalf ¶
func Fatalf(format string, args ...interface{})
Fatalf package-level convenience method.
func Panicf ¶
func Panicf(format string, args ...interface{})
Panicf package-level convenience method.
func Printf ¶
func Printf(format string, args ...interface{})
Printf package-level convenience method.
func SetJSONFormatter ¶
func SetJSONFormatter()
SetJSONFormatter sets JSON Formatter for default logger.
Types ¶
type Logger ¶
type Logger interface { Debug(args ...interface{}) Debugf(format string, args ...interface{}) Debugln(args ...interface{}) Error(args ...interface{}) Errorf(format string, args ...interface{}) Errorln(args ...interface{}) Fatal(args ...interface{}) Fatalf(format string, args ...interface{}) Fatalln(args ...interface{}) Info(args ...interface{}) Infof(format string, args ...interface{}) Infoln(args ...interface{}) Panic(args ...interface{}) Panicf(format string, args ...interface{}) Panicln(args ...interface{}) Print(args ...interface{}) Printf(format string, args ...interface{}) Println(args ...interface{}) Warn(args ...interface{}) Warnf(format string, args ...interface{}) Warning(args ...interface{}) Warningf(format string, args ...interface{}) Warningln(args ...interface{}) Warnln(args ...interface{}) }
Logger defines a set of methods for writing application logs.
func WithFields ¶
type RetryLogger ¶
type RetryLogger struct {
client.DefaultRetryer
}
func NewRetryLogger ¶
func NewRetryLogger(retryer client.DefaultRetryer) *RetryLogger
func (RetryLogger) RetryRules ¶
func (l RetryLogger) RetryRules(r *request.Request) time.Duration
Click to show internal directories.
Click to hide internal directories.