Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hook ¶
type Hook struct {
// contains filtered or unexported fields
}
Hook represents a Logrus hook to SendGrid. Users should have a valid API key from SendGrid before using this hook.
func (*Hook) Fire ¶
Fire sends a message on SendGrid from the hook's From user to the hook's To user. Messages have a subject with the format "SERVICE_NAME[LEVEL]: MESSAGE". Each message body contains the message text, log entry time, and fields.
Click to show internal directories.
Click to hide internal directories.