Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TeamsWriter ¶
type TeamsWriter struct {
log.RetrySupport
log.FilterSupport
log.FormatSupport
log.SubjectSuport
Webhook string
Timeout time.Duration
Style string
// contains filtered or unexported fields
}
TeamsWriter implements log Writer Interface and send log message to teams.
func (*TeamsWriter) SetTimeout ¶
func (tw *TeamsWriter) SetTimeout(timeout string) error
SetTimeout set timeout
func (*TeamsWriter) SetWebhook ¶
func (tw *TeamsWriter) SetWebhook(webhook string) error
SetWebhook set the webhook URL
func (*TeamsWriter) Write ¶
func (tw *TeamsWriter) Write(le *log.Event)
Write send log message to teams
Click to show internal directories.
Click to hide internal directories.