Documentation ¶
Index ¶
- func NewLogger(conf *Config) (log.Logger, func(), error)
- type Config
- type Helper
- func (h *Helper) Debugw(msg string, keyvals ...interface{})
- func (h *Helper) Errorw(msg string, keyvals ...interface{})
- func (h *Helper) Infow(msg string, keyvals ...interface{})
- func (h *Helper) Log(level log.Level, keyvals ...interface{})
- func (h *Helper) Warnw(msg string, keyvals ...interface{})
- func (h *Helper) With(kv ...interface{}) *Helper
- func (h *Helper) WithContext(ctx context.Context) *Helper
- type ZapLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Helper ¶
type Helper struct {
// contains filtered or unexported fields
}
Helper is a logger helper.
Click to show internal directories.
Click to hide internal directories.