Documentation ¶
Index ¶
- func Check(lvl zapcore.Level, msg string)
- func Core() zapcore.Core
- 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 Named(s string) *zap.Logger
- func NewLogger(c *config.Config, opts ...Option) (err error)
- func Panic(msg string, fields ...zap.Field)
- func SetLog(log *zap.Logger)
- func Sugar() *zap.SugaredLogger
- func Sync() error
- func Warn(msg string, fields ...zap.Field)
- func With(fields ...zap.Field)
- func WithContext(ctx context.Context) *zap.Logger
- func WithOptions(opts ...zap.Option) *zap.Logger
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sugar ¶ added in v0.0.7
func Sugar() *zap.SugaredLogger
func WithContext ¶ added in v0.1.0
WithContext release fields to a new logger. Plugins can use this method to release plugin name field.
Types ¶
Click to show internal directories.
Click to hide internal directories.