Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SMTPWriter ¶
type SMTPWriter struct {
log.RetrySupport
log.FilterSupport
log.FormatSupport
log.SubjectSuport
Host string
Port int
Insecure bool
Username string
Password string
Timeout time.Duration
// contains filtered or unexported fields
}
SMTPWriter implements log Writer Interface and send log message.
func (*SMTPWriter) SetFrom ¶ added in v1.0.27
func (sw *SMTPWriter) SetFrom(s string) error
SetFrom set From recipient
func (*SMTPWriter) SetTimeout ¶
func (sw *SMTPWriter) SetTimeout(timeout string) error
SetTimeout set timeout
func (*SMTPWriter) Write ¶
func (sw *SMTPWriter) Write(le *log.Event)
Write send log message to smtp server.
Click to show internal directories.
Click to hide internal directories.