Documentation
¶
Index ¶
- func DebugContextf(ctx context.Context, format string, args ...interface{})
- func ErrorContextf(ctx context.Context, format string, args ...interface{})
- func Info(format string, args ...interface{})
- func InfoContextf(ctx context.Context, format string, args ...interface{})
- func SetLogger(logger Logger)
- func WarnContextf(ctx context.Context, format string, args ...interface{})
- type Logger
- type NoneLogger
- func (w *NoneLogger) DebugContextf(ctx context.Context, format string, args ...interface{})
- func (w *NoneLogger) ErrorContextf(ctx context.Context, format string, args ...interface{})
- func (w *NoneLogger) InfoContextf(ctx context.Context, format string, args ...interface{})
- func (w *NoneLogger) WarnContextf(ctx context.Context, format string, args ...interface{})
- type WrapLogger
- func (w *WrapLogger) DebugContextf(ctx context.Context, format string, args ...interface{})
- func (w *WrapLogger) ErrorContextf(ctx context.Context, format string, args ...interface{})
- func (w *WrapLogger) InfoContextf(ctx context.Context, format string, args ...interface{})
- func (w *WrapLogger) WarnContextf(ctx context.Context, format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugContextf ¶
DebugContextf ...
func ErrorContextf ¶
ErrorContextf ...
func InfoContextf ¶
InfoContextf ...
func WarnContextf ¶
WarnContextf ...
Types ¶
type Logger ¶
type Logger interface {
ErrorContextf(context.Context, string, ...interface{})
InfoContextf(context.Context, string, ...interface{})
WarnContextf(context.Context, string, ...interface{})
DebugContextf(context.Context, string, ...interface{})
}
Logger ...
type NoneLogger ¶
type NoneLogger struct {
}
NoneLogger ...
func (*NoneLogger) DebugContextf ¶
func (w *NoneLogger) DebugContextf(ctx context.Context, format string, args ...interface{})
DebugContextf ...
func (*NoneLogger) ErrorContextf ¶
func (w *NoneLogger) ErrorContextf(ctx context.Context, format string, args ...interface{})
ErrorContextf ...
func (*NoneLogger) InfoContextf ¶
func (w *NoneLogger) InfoContextf(ctx context.Context, format string, args ...interface{})
InfoContextf ...
func (*NoneLogger) WarnContextf ¶
func (w *NoneLogger) WarnContextf(ctx context.Context, format string, args ...interface{})
WarnContextf ...
type WrapLogger ¶
type WrapLogger struct {
}
WrapLogger ...
func (*WrapLogger) DebugContextf ¶
func (w *WrapLogger) DebugContextf(ctx context.Context, format string, args ...interface{})
DebugContextf ...
func (*WrapLogger) ErrorContextf ¶
func (w *WrapLogger) ErrorContextf(ctx context.Context, format string, args ...interface{})
ErrorContextf ...
func (*WrapLogger) InfoContextf ¶
func (w *WrapLogger) InfoContextf(ctx context.Context, format string, args ...interface{})
InfoContextf ...
func (*WrapLogger) WarnContextf ¶
func (w *WrapLogger) WarnContextf(ctx context.Context, format string, args ...interface{})
WarnContextf ...
Click to show internal directories.
Click to hide internal directories.