sls

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option struct {
	// contains filtered or unexported fields
}

type OptionFunc

type OptionFunc func(*Option)

func SetLogstore

func SetLogstore(name string) OptionFunc

func SetProject

func SetProject(name string) OptionFunc

func SetSource

func SetSource(name string) OptionFunc

func SetTopic

func SetTopic(name string) OptionFunc

type SLSHook

type SLSHook struct {
	// contains filtered or unexported fields
}

func NewSLSHook

func NewSLSHook(accessKeyId, accessKeySecret, endpoint, allowLogLevel string, opts ...OptionFunc) *SLSHook

func (*SLSHook) Close

func (hook *SLSHook) Close(timeoutMs int64) error

func (*SLSHook) Fire

func (hook *SLSHook) Fire(entry *logrus.Entry) error

func (*SLSHook) Levels

func (hook *SLSHook) Levels() []logrus.Level

func (*SLSHook) SafeClose

func (hook *SLSHook) SafeClose()

Jump to

Keyboard shortcuts

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