Documentation ¶
Index ¶
- Constants
- func NewAWSWrapper(logger zerolog.Logger) aws.LoggerFunc
- func NewGoKitWrapper(logger zerolog.Logger) kitlog.LoggerFunc
- func NoLevel(logger zerolog.Logger, level zerolog.Level) zerolog.Logger
- type DatadogLogger
- type ElasticLogger
- type InstanaLogger
- type LogrusStdWrapper
- func (l LogrusStdWrapper) Fatal(args ...interface{})
- func (l LogrusStdWrapper) Fatalf(s string, args ...interface{})
- func (l LogrusStdWrapper) Fatalln(args ...interface{})
- func (l LogrusStdWrapper) Panic(args ...interface{})
- func (l LogrusStdWrapper) Panicf(s string, args ...interface{})
- func (l LogrusStdWrapper) Panicln(args ...interface{})
- func (l LogrusStdWrapper) Print(args ...interface{})
- func (l LogrusStdWrapper) Printf(s string, args ...interface{})
- func (l LogrusStdWrapper) Println(args ...interface{})
- type NoLevelHook
- type OxyWrapper
- type RetryableHTTPLogger
- func (l RetryableHTTPLogger) Debug(msg string, keysAndValues ...interface{})
- func (l RetryableHTTPLogger) Error(msg string, keysAndValues ...interface{})
- func (l RetryableHTTPLogger) Info(msg string, keysAndValues ...interface{})
- func (l RetryableHTTPLogger) Warn(msg string, keysAndValues ...interface{})
- type WasmLogger
Constants ¶
View Source
const ( EntryPointName = "entryPointName" RouterName = "routerName" Rule = "rule" MiddlewareName = "middlewareName" MiddlewareType = "middlewareType" ProviderName = "providerName" ServiceName = "serviceName" MetricsProviderName = "metricsProviderName" TracingProviderName = "tracingProviderName" ServerName = "serverName" ServerIndex = "serverIndex" TLSStoreName = "tlsStoreName" ServersTransportName = "serversTransport" )
Log entry names.
Variables ¶
This section is empty.
Functions ¶
func NewAWSWrapper ¶
func NewAWSWrapper(logger zerolog.Logger) aws.LoggerFunc
func NewGoKitWrapper ¶
func NewGoKitWrapper(logger zerolog.Logger) kitlog.LoggerFunc
Types ¶
type DatadogLogger ¶
type DatadogLogger struct {
// contains filtered or unexported fields
}
func NewDatadogLogger ¶
func NewDatadogLogger(logger zerolog.Logger) *DatadogLogger
func (DatadogLogger) Log ¶
func (d DatadogLogger) Log(msg string)
type ElasticLogger ¶
type ElasticLogger struct {
// contains filtered or unexported fields
}
func NewElasticLogger ¶
func NewElasticLogger(logger zerolog.Logger) *ElasticLogger
func (ElasticLogger) Debugf ¶
func (l ElasticLogger) Debugf(format string, args ...interface{})
func (ElasticLogger) Errorf ¶
func (l ElasticLogger) Errorf(format string, args ...interface{})
type InstanaLogger ¶
type InstanaLogger struct {
// contains filtered or unexported fields
}
func NewInstanaLogger ¶
func NewInstanaLogger(logger zerolog.Logger) *InstanaLogger
func (InstanaLogger) Debug ¶
func (l InstanaLogger) Debug(args ...interface{})
func (InstanaLogger) Error ¶
func (l InstanaLogger) Error(args ...interface{})
func (InstanaLogger) Info ¶
func (l InstanaLogger) Info(args ...interface{})
func (InstanaLogger) Warn ¶
func (l InstanaLogger) Warn(args ...interface{})
type LogrusStdWrapper ¶
type LogrusStdWrapper struct {
// contains filtered or unexported fields
}
func NewLogrusWrapper ¶
func NewLogrusWrapper(logger zerolog.Logger) *LogrusStdWrapper
func (LogrusStdWrapper) Fatal ¶
func (l LogrusStdWrapper) Fatal(args ...interface{})
func (LogrusStdWrapper) Fatalf ¶
func (l LogrusStdWrapper) Fatalf(s string, args ...interface{})
func (LogrusStdWrapper) Fatalln ¶
func (l LogrusStdWrapper) Fatalln(args ...interface{})
func (LogrusStdWrapper) Panic ¶
func (l LogrusStdWrapper) Panic(args ...interface{})
func (LogrusStdWrapper) Panicf ¶
func (l LogrusStdWrapper) Panicf(s string, args ...interface{})
func (LogrusStdWrapper) Panicln ¶
func (l LogrusStdWrapper) Panicln(args ...interface{})
func (LogrusStdWrapper) Print ¶
func (l LogrusStdWrapper) Print(args ...interface{})
func (LogrusStdWrapper) Printf ¶
func (l LogrusStdWrapper) Printf(s string, args ...interface{})
func (LogrusStdWrapper) Println ¶
func (l LogrusStdWrapper) Println(args ...interface{})
type NoLevelHook ¶
type NoLevelHook struct {
// contains filtered or unexported fields
}
func NewNoLevelHook ¶
func NewNoLevelHook(minLevel zerolog.Level, level zerolog.Level) *NoLevelHook
type OxyWrapper ¶
type OxyWrapper struct {
// contains filtered or unexported fields
}
func NewOxyWrapper ¶
func NewOxyWrapper(logger zerolog.Logger) *OxyWrapper
func (OxyWrapper) Debug ¶
func (l OxyWrapper) Debug(s string, i ...interface{})
func (OxyWrapper) Error ¶
func (l OxyWrapper) Error(s string, i ...interface{})
func (OxyWrapper) Info ¶
func (l OxyWrapper) Info(s string, i ...interface{})
func (OxyWrapper) Warn ¶
func (l OxyWrapper) Warn(s string, i ...interface{})
type RetryableHTTPLogger ¶
type RetryableHTTPLogger struct {
// contains filtered or unexported fields
}
RetryableHTTPLogger wraps our logger and implements retryablehttp.LeveledLogger. The retry library sends fields as pairs of keys and values as structured logging, so we need to adapt them to our logger.
func NewRetryableHTTPLogger ¶
func NewRetryableHTTPLogger(logger zerolog.Logger) *RetryableHTTPLogger
NewRetryableHTTPLogger creates an implementation of the retryablehttp.LeveledLogger.
func (RetryableHTTPLogger) Debug ¶
func (l RetryableHTTPLogger) Debug(msg string, keysAndValues ...interface{})
Debug starts a new message with debug level.
func (RetryableHTTPLogger) Error ¶
func (l RetryableHTTPLogger) Error(msg string, keysAndValues ...interface{})
Error starts a new message with error level.
func (RetryableHTTPLogger) Info ¶
func (l RetryableHTTPLogger) Info(msg string, keysAndValues ...interface{})
Info starts a new message with info level.
func (RetryableHTTPLogger) Warn ¶
func (l RetryableHTTPLogger) Warn(msg string, keysAndValues ...interface{})
Warn starts a new message with warn level.
type WasmLogger ¶
type WasmLogger struct {
// contains filtered or unexported fields
}
WasmLogger is a convenience which writes anything above LogLevelInfo to os.Stdout.
func NewWasmLogger ¶
func NewWasmLogger(logger *zerolog.Logger) *WasmLogger
Click to show internal directories.
Click to hide internal directories.