Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSugaredLogger ¶
func NewSugaredLogger(name string, level string) *zap.SugaredLogger
NewSugaredLogger new a zap sugared logger
Types ¶
type Logger ¶
type Logger interface { Debug(args ...interface{}) Info(args ...interface{}) Warn(args ...interface{}) Error(args ...interface{}) Debugf(template string, args ...interface{}) Infof(template string, args ...interface{}) Warnf(template string, args ...interface{}) Errorf(template string, args ...interface{}) Sync() error }
Logger logger interface
var ( // DefaultLogger default logger DefaultLogger Logger = &nilLogger{} )
Click to show internal directories.
Click to hide internal directories.