Documentation ¶
Overview ¶
将logrus钩子扩展
Index ¶
- func RegEmailAuthHook(logger *logrus.Logger, app_name, host string, port int, ...) error
- func RegEmailHook(logger *logrus.Logger, app_name, host string, port int, from, to string) error
- func RegRotateHook(logger *logrus.Logger, dir, filename string, ...) error
- func RegWebHook(logger *logrus.Logger, level logrus.Level, url, title, msg string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegEmailAuthHook ¶
func RegEmailAuthHook(logger *logrus.Logger, app_name, host string, port int, from, to, username, password string) error
注册 带验证的 邮件服务 只接受Error,Fatal,Panic级别的log
func RegEmailHook ¶
注册 无验证的 邮件服务 只接受Error,Fatal,Panic级别的log
func RegRotateHook ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.