Documentation ¶
Index ¶
- func Setup(level, format string)
- type RetryableHTTPWrapper
- func (l RetryableHTTPWrapper) Debug(msg string, keysAndValues ...interface{})
- func (l RetryableHTTPWrapper) Error(msg string, keysAndValues ...interface{})
- func (l RetryableHTTPWrapper) Info(msg string, keysAndValues ...interface{})
- func (l RetryableHTTPWrapper) Warn(msg string, keysAndValues ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RetryableHTTPWrapper ¶
type RetryableHTTPWrapper struct {
// contains filtered or unexported fields
}
RetryableHTTPWrapper wraps our logger and implements retryablehttp.LeveledLogger. The retry library we're using structured logging but sends fields as pairs of keys and values, so we need to adapt them to our logger.
func NewRetryableHTTPWrapper ¶
func NewRetryableHTTPWrapper(logger zerolog.Logger) *RetryableHTTPWrapper
NewRetryableHTTPWrapper creates an implementation of the retryablehttp.LeveledLogger.
func (RetryableHTTPWrapper) Debug ¶
func (l RetryableHTTPWrapper) Debug(msg string, keysAndValues ...interface{})
Debug starts a new message with debug level.
func (RetryableHTTPWrapper) Error ¶
func (l RetryableHTTPWrapper) Error(msg string, keysAndValues ...interface{})
Error starts a new message with error level.
func (RetryableHTTPWrapper) Info ¶
func (l RetryableHTTPWrapper) Info(msg string, keysAndValues ...interface{})
Info starts a new message with info level.
func (RetryableHTTPWrapper) Warn ¶
func (l RetryableHTTPWrapper) Warn(msg string, keysAndValues ...interface{})
Warn starts a new message with warn level.
Click to show internal directories.
Click to hide internal directories.