Documentation
¶
Index ¶
- type Logger
- func (l *Logger) Debugf(template string, args ...interface{})
- func (l *Logger) Errorf(template string, args ...interface{})
- func (l *Logger) Fatalf(template string, args ...interface{})
- func (l *Logger) GetRetryableHTTPLogger() *retryableHTTPLogger
- func (l *Logger) GetTemporalLogger() log.Logger
- func (l *Logger) Infof(template string, args ...interface{})
- func (l *Logger) Warnf(template string, args ...interface{})
- func (l *Logger) WithContext(ctx context.Context) *Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
*zap.SugaredLogger
}
Logger wraps zap.SugaredLogger to provide logging functionality
var L *Logger
Global logger for convenience
func GetLoggerWithContext ¶
func NewLogger ¶
func NewLogger(cfg *config.Configuration) (*Logger, error)
NewLogger creates and returns a new Logger instance
func (*Logger) GetRetryableHTTPLogger ¶ added in v1.0.27
func (l *Logger) GetRetryableHTTPLogger() *retryableHTTPLogger
GetRetryableHTTPLogger returns a retryable HTTP client-compatible logger
func (*Logger) GetTemporalLogger ¶ added in v1.0.27
GetTemporalLogger returns a temporal-compatible logger
Click to show internal directories.
Click to hide internal directories.