Documentation ¶
Index ¶
- func Count(count int) zap.Field
- func Error(err error) zap.Field
- func Int(key string, value int64) zap.Field
- func String(key, value string) zap.Field
- type Logger
- func (l *Logger) Debug(msg string, fields ...zap.Field)
- func (l *Logger) Error(msg string, err error, extraFields ...zap.Field)
- func (l *Logger) Fatal(msg string, err error)
- func (l *Logger) Info(msg string, fields ...zap.Field)
- func (l *Logger) Log(keyvals ...interface{}) error
- func (l *Logger) NamedLog(name string) *Logger
- func (l *Logger) Panic(msg string, fields ...zap.Field)
- func (l *Logger) StdLog(name string) *log.Logger
- func (l *Logger) Sync()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func NewTestLogger ¶
func WrapLogger ¶ added in v1.3.0
Click to show internal directories.
Click to hide internal directories.