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