Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MailHook ¶
type MailHook struct { Host string Port int Username string Password string From *mail.Address To []*mail.Address AppName string // contains filtered or unexported fields }
MailHook to sends logs by email with authentication.
func NewMailHook ¶
func NewMailHook(host string, port int, username string, password string, to string, appname string) (*MailHook, error)
NewMailHook creates a hook to be added to an instance of logger.
Click to show internal directories.
Click to hide internal directories.