Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultFormatter ¶
DefaultFormatter is the default entry formatter used.
Types ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer is a log.EntryWriter that will send the log to mattermost on a specific channel.
func NewWriter ¶
NewWriter returns a new writer. When no channel is given, it will send the message to the default channel (general). When no formatter is given, it will take the default formatter.
func (*Writer) WriteEntry ¶
WriteEntry implements the log.EntryWriter interface.
Click to show internal directories.
Click to hide internal directories.