Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustZapSugar ¶
func MustZapSugar(options ...Option) *zap.SugaredLogger
func NewZapSugar ¶
func NewZapSugar(options ...Option) (*zap.SugaredLogger, error)
Types ¶
type Logger ¶
type Logger interface { Debug(v ...interface{}) Debugf(f string, v ...interface{}) Debugw(msg string, kv ...interface{}) Info(v ...interface{}) Infof(f string, v ...interface{}) Infow(msg string, kv ...interface{}) Warn(v ...interface{}) Warnf(f string, v ...interface{}) Warnw(msg string, kv ...interface{}) Error(v ...interface{}) Errorf(f string, v ...interface{}) Errorw(msg string, kv ...interface{}) Panic(v ...interface{}) Panicf(f string, v ...interface{}) Panicw(msg string, kv ...interface{}) Fatal(v ...interface{}) Fatalf(f string, v ...interface{}) Fatalw(msg string, kv ...interface{}) }
var Default Logger = MustZapSugar()
type Option ¶
type Option func(*ZapSugerConfig)
Click to show internal directories.
Click to hide internal directories.