teamslog

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2025 License: MIT Imports: 7 Imported by: 1

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

func (tw *TeamsWriter) Close()

Close flush and close.

func (*TeamsWriter) Flush

func (tw *TeamsWriter) Flush()

Flush retry send failed events.

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

Jump to

Keyboard shortcuts

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