Documentation ¶
Index ¶
- func Download(url string, path string) (err error)
- func Env(key, def string) string
- func LevelToZapLevel(level string) zapcore.Level
- func NewLogger(logLevel, logFile, logtype string, logColor bool) *zap.Logger
- func NewSugarLogger(logLevel, logFile, logType string, logColor bool) *zap.SugaredLogger
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LevelToZapLevel ¶
func NewSugarLogger ¶
func NewSugarLogger(logLevel, logFile, logType string, logColor bool) *zap.SugaredLogger
NewSugarLogger 创建一个sugar
Types ¶
Click to show internal directories.
Click to hide internal directories.