Documentation ¶
Index ¶
- Variables
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func InitLogger(conf *LogConfig, env, dingUrl string) error
- func SendMonitor2DingDing(args string)
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- func ZnTimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)
- type LogConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SugaredLogger *zap.SugaredLogger Env string DingUrl string )
Functions ¶
func Debugf ¶
func Debugf(format string, args ...interface{})
Debugf fmt.Sprintf to log a templated message.
func Errorf ¶
func Errorf(format string, args ...interface{})
Errorf uses fmt.Sprintf to log a templated message.
func Infof ¶
func Infof(format string, args ...interface{})
Infof uses fmt.Sprintf to log a templated message.
func InitLogger ¶
func SendMonitor2DingDing ¶
func SendMonitor2DingDing(args string)
func Warnf ¶
func Warnf(format string, args ...interface{})
Warnf uses fmt.Sprintf to log a templated message.
func ZnTimeEncoder ¶
func ZnTimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)
Types ¶
Click to show internal directories.
Click to hide internal directories.