hook

package
v1.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

将logrus钩子扩展

Index

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

func RegEmailHook(logger *logrus.Logger, app_name, host string, port int, from, to string) error

注册 无验证的 邮件服务 只接受Error,Fatal,Panic级别的log

func RegRotateHook

func RegRotateHook(logger *logrus.Logger, dir, filename string, max_age, rotation_time time.Duration) error

func RegWebHook

func RegWebHook(logger *logrus.Logger, level logrus.Level, url, title, msg string)

发生指定错误 调用指定接口

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL