Documentation ¶
Overview ¶
Package maillog implements a log specifically for email.
Index ¶
- func Auth(netAddr net.Addr, user string, successful bool)
- func Listening(a string)
- func QueueLoop(id, from string, nextDelay time.Duration)
- func Queued(netAddr net.Addr, from string, to []string, id string)
- func Rejected(netAddr net.Addr, from string, to []string, err string)
- func SendAttempt(id, from, to string, err error, permanent bool)
- type Logger
- func (l *Logger) Auth(netAddr net.Addr, user string, successful bool)
- func (l *Logger) Listening(a string)
- func (l *Logger) QueueLoop(id, from string, nextDelay time.Duration)
- func (l *Logger) Queued(netAddr net.Addr, from string, to []string, id string)
- func (l *Logger) Rejected(netAddr net.Addr, from string, to []string, err string)
- func (l *Logger) Reopen() error
- func (l *Logger) SendAttempt(id, from, to string, err error, permanent bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Listening ¶
func Listening(a string)
Listening logs that the daemon is listening on the given address.
func SendAttempt ¶
SendAttempt logs that we have attempted to send an email.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger contains a backend used to log data to, such as a file or syslog. It implements various user-friendly methods for logging mail information to it.
Default logger, used in the following top-level functions.
func New ¶
func New(w io.WriteCloser) *Logger
New creates a new Logger which will write messages to the given writer.
func NewFile ¶
NewFile creates a new Logger which will write messages to the file at the given path.
Click to show internal directories.
Click to hide internal directories.