Documentation ¶
Index ¶
- Variables
- func Check(lvl zapcore.Level, msg string) *zapcore.CheckedEntry
- func DPanic(msg string, fields ...zap.Field)
- func Debug(msg string, fields ...zap.Field)
- func Error(msg string, fields ...zap.Field)
- func Fatal(msg string, fields ...zap.Field)
- func Info(msg string, fields ...zap.Field)
- func Init(opts ...Options) (err error)
- func Named(s string) *zap.Logger
- func Panic(msg string, fields ...zap.Field)
- func Sugar() *zap.SugaredLogger
- func Sync() error
- func Warn(msg string, fields ...zap.Field)
- func With(fields ...zap.Field) *zap.Logger
- func WithOptions(options ...zap.Option) *zap.Logger
- type Logger
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrEmptyOpts = errors.New("Options must not be nil or empty")
)
List of all errors used in this package
Functions ¶
func Check ¶
func Check(lvl zapcore.Level, msg string) *zapcore.CheckedEntry
Check returns a CheckedEntry if logging a message at the specified level is enabled.
func DPanic ¶
DPanic logs message at DPanic level. If logger is in the development mode, the logger will be panic.
Types ¶
Click to show internal directories.
Click to hide internal directories.