Documentation ¶
Overview ¶
Package log implements logger
Index ¶
Constants ¶
View Source
const ( LevelTrace = "trace" LevelDebug = "debug" LevelInfo = "info" LevelWarn = "warn" LevelError = "error" LevelFatal = "fatal" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { Debug(msg string, others ...interface{}) Info(msg string, others ...interface{}) Error(msg string, others ...interface{}) Fatal(msg string, others ...interface{}) Debugf(msg string, others ...interface{}) Infof(msg string, others ...interface{}) Errorf(msg string, others ...interface{}) Fatalf(msg string, others ...interface{}) Warning(msg string, others ...interface{}) Warningf(msg string, others ...interface{}) With(kv ...interface{}) Logger }
Logger interface used in the sdk.
var DefaultLogger Logger
DefaultLogger is a default setup logger.
func NewDefaultProductionLogger ¶
NewDefaultProductionLogger returns zap logger with default production setting.
func NewSilentLogger ¶
Click to show internal directories.
Click to hide internal directories.