lineworkslog

package
v1.2.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2026 License: MIT Imports: 7 Imported by: 0

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) Close

func (sw *LineWorksWriter) Close()

Close flush and close.

func (*LineWorksWriter) Flush

func (sw *LineWorksWriter) Flush()

Flush retry send failed events.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL