Documentation ¶
Index ¶
- type Logger
- type NullLogger
- func (n NullLogger) ContextDebugf(ctx context.Context, format string, v ...interface{})
- func (n NullLogger) ContextErrorf(ctx context.Context, format string, v ...interface{})
- func (n NullLogger) ContextInfof(ctx context.Context, format string, v ...interface{})
- func (n NullLogger) ContextPanicf(ctx context.Context, format string, v ...interface{})
- func (n NullLogger) Debugf(format string, v ...interface{})
- func (n NullLogger) Error(msg string)
- func (n NullLogger) Errorf(format string, v ...interface{})
- func (n NullLogger) Infof(format string, v ...interface{})
- func (n NullLogger) Panicf(format string, v ...interface{})
- func (n NullLogger) Print(v ...interface{})
- type ZapLogger
- func (z *ZapLogger) ContextDebugf(ctx context.Context, format string, v ...interface{})
- func (z *ZapLogger) ContextErrorf(ctx context.Context, format string, v ...interface{})
- func (z *ZapLogger) ContextInfof(ctx context.Context, format string, v ...interface{})
- func (z *ZapLogger) ContextPanicf(ctx context.Context, format string, v ...interface{})
- func (z *ZapLogger) DebugField(msg string, fields ...zap.Field)
- func (z *ZapLogger) Debugf(format string, v ...interface{})
- func (z *ZapLogger) Error(msg string)
- func (z *ZapLogger) ErrorField(msg string, fields ...zap.Field)
- func (z *ZapLogger) Errorf(format string, v ...interface{})
- func (z *ZapLogger) InfoField(msg string, fields ...zap.Field)
- func (z *ZapLogger) Infof(format string, v ...interface{})
- func (z *ZapLogger) PanicField(msg string, fields ...zap.Field)
- func (z *ZapLogger) Panicf(format string, v ...interface{})
- func (z *ZapLogger) Print(v ...interface{})
- func (z *ZapLogger) WithContext(ctx context.Context) *ZapLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { Error(msg string) Print(v ...interface{}) Debugf(format string, v ...interface{}) Infof(format string, v ...interface{}) Errorf(format string, v ...interface{}) Panicf(format string, v ...interface{}) ContextDebugf(ctx context.Context, format string, v ...interface{}) ContextInfof(ctx context.Context, format string, v ...interface{}) ContextErrorf(ctx context.Context, format string, v ...interface{}) ContextPanicf(ctx context.Context, format string, v ...interface{}) }
type NullLogger ¶
type NullLogger struct{}
func (NullLogger) ContextDebugf ¶
func (n NullLogger) ContextDebugf(ctx context.Context, format string, v ...interface{})
func (NullLogger) ContextErrorf ¶
func (n NullLogger) ContextErrorf(ctx context.Context, format string, v ...interface{})
func (NullLogger) ContextInfof ¶
func (n NullLogger) ContextInfof(ctx context.Context, format string, v ...interface{})
func (NullLogger) ContextPanicf ¶
func (n NullLogger) ContextPanicf(ctx context.Context, format string, v ...interface{})
func (NullLogger) Debugf ¶
func (n NullLogger) Debugf(format string, v ...interface{})
func (NullLogger) Error ¶
func (n NullLogger) Error(msg string)
func (NullLogger) Errorf ¶
func (n NullLogger) Errorf(format string, v ...interface{})
func (NullLogger) Infof ¶
func (n NullLogger) Infof(format string, v ...interface{})
func (NullLogger) Panicf ¶
func (n NullLogger) Panicf(format string, v ...interface{})
func (NullLogger) Print ¶
func (n NullLogger) Print(v ...interface{})
type ZapLogger ¶
func NewZapLogger ¶
func (*ZapLogger) ContextDebugf ¶
func (*ZapLogger) ContextErrorf ¶
func (*ZapLogger) ContextInfof ¶
func (*ZapLogger) ContextPanicf ¶
Click to show internal directories.
Click to hide internal directories.