Documentation ¶
Index ¶
- func With(ctx context.Context, fields ...zap.Field) context.Context
- type DynamicFields
- type FieldLogger
- type Logger
- func (l *Logger) Debug(ctx context.Context, msg string, fields ...zap.Field)
- func (l *Logger) DynamicFields(dynamicFields ...DynamicFields) *Logger
- func (l *Logger) Error(ctx context.Context, msg string, fields ...zap.Field)
- func (l *Logger) IfErr(err error) *Logger
- func (l *Logger) Info(ctx context.Context, msg string, fields ...zap.Field)
- func (l *Logger) Panic(ctx context.Context, msg string, fields ...zap.Field)
- func (l *Logger) Unwrap(ctx context.Context) *zap.Logger
- func (l *Logger) Warn(ctx context.Context, msg string, fields ...zap.Field)
- func (l *Logger) With(fields ...zap.Field) *Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FieldLogger ¶
type FieldLogger struct {
Logger *Logger
}
func (*FieldLogger) Log ¶
func (f *FieldLogger) Log(keyvals ...interface{})
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) DynamicFields ¶
func (l *Logger) DynamicFields(dynamicFields ...DynamicFields) *Logger
Click to show internal directories.
Click to hide internal directories.