teamslog

package
v1.0.25 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: MIT Imports: 6 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.LogFilter
	log.LogFormatter
	log.SubFormatter

	Webhook string
	Timeout time.Duration
}

TeamsWriter implements log Writer Interface and send log message to teams.

func (*TeamsWriter) Close

func (tw *TeamsWriter) Close()

Close implementing method. empty.

func (*TeamsWriter) Flush

func (tw *TeamsWriter) Flush()

Flush implementing method. empty.

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) (err error)

Write send log message to teams

Jump to

Keyboard shortcuts

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