aliSLS

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSLSHandler

func GetSLSHandler(level golog.Level) (handler func(l *golog.Log) bool, err error)

Types

type SLSAgent

type SLSAgent interface {
	// 发送自定义日志
	SendCustomize(contents []*sls.LogContent) error
	// 发送自定义map
	SendCustomizeMap(mapContents map[string]string) error
	// 发送日志
	Send(contents []*sls.LogContent, skip ...int) (err error)
	// 发送map
	SendMap(mapContents map[string]string) (err error)
	// 带超时的关闭
	Close(timeoutMs int64) error
	// 安全关闭
	SafeClose()
}

func GetSLS

func GetSLS(endpoint, keyID, keySecret, project, logStore, topic, source string) SLSAgent

Jump to

Keyboard shortcuts

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