Documentation ¶
Index ¶
- func DPanic(config *zap.Config)
- func Debug(config *zap.Config)
- func DisableCaller(config *zap.Config)
- func DisableStacktrace(config *zap.Config)
- func Error(config *zap.Config)
- func Fatal(config *zap.Config)
- func Info(config *zap.Config)
- func Init(logger *Logger)
- func Panic(config *zap.Config)
- func Warn(config *zap.Config)
- func WithConsoleEncoding(config *zap.Config)
- func WithGoogleEncoding(cfg *zap.Config)
- type Logger
- func (l *Logger) AddCommon(fields ...zap.Field)
- func (l *Logger) Clone() *Logger
- func (l *Logger) Debug(msg string, fields ...zap.Field)
- func (l *Logger) Error(msg string, fields ...zap.Field)
- func (l *Logger) ErrorIf(err error, msg string, fields ...zap.Field)
- func (l *Logger) Fatal(msg string, fields ...zap.Field)
- func (l *Logger) FatalIf(err error, msg string, fields ...zap.Field)
- func (l *Logger) Info(msg string, fields ...zap.Field)
- func (l *Logger) Sync()
- func (l *Logger) Warn(msg string, fields ...zap.Field)
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableCaller ¶
func DisableStacktrace ¶
func WithConsoleEncoding ¶
func WithGoogleEncoding ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func DevelopmentInstance ¶
Click to show internal directories.
Click to hide internal directories.