Documentation ¶
Index ¶
- Variables
- func On(fn func(*Log))
- type Log
- type Logger
- func (t *Logger) Depth(depth ...int) *zap.Logger
- func (t *Logger) DepthS(depth ...int) *zap.SugaredLogger
- func (t *Logger) Error(args ...interface{})
- func (t *Logger) Errorf(template string, args ...interface{})
- func (t *Logger) Errorw(msg string, keysAndValues ...interface{})
- func (t *Logger) Info(args ...interface{})
- func (t *Logger) Infof(template string, args ...interface{})
- func (t *Logger) Infow(msg string, keysAndValues ...interface{})
- func (t *Logger) LogAndThrow(msg string, fn func() error, fields ...zap.Field)
- func (t *Logger) Logs(msg string, fn func() error, fields ...zap.Field)
- func (t *Logger) Step(msg string, fn func() error, fields ...zap.Field)
- func (t *Logger) StepAndThrow(msg string, fn func() error, fields ...zap.Field)
- func (t *Logger) TryWith(fn func()) *zap.SugaredLogger
- func (t *Logger) Warn(args ...interface{})
- func (t *Logger) Warnf(template string, args ...interface{})
- func (t *Logger) Warnw(msg string, keysAndValues ...interface{})
- func (t *Logger) With(args ...zap.Field) *zap.Logger
- func (t *Logger) WithErr(err error, fields ...zap.Field) *zap.Logger
Constants ¶
This section is empty.
Variables ¶
View Source
var Discard = zap.NewNop()
Functions ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) LogAndThrow ¶
func (*Logger) StepAndThrow ¶
func (*Logger) TryWith ¶
func (t *Logger) TryWith(fn func()) *zap.SugaredLogger
Click to show internal directories.
Click to hide internal directories.