hook

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CLSHook

func CLSHook() *tlog.TLog

func NewCLS

func NewCLS(topic string) *cls

func NewKafka

func NewKafka(user, password, endpoint, topic string) *kafka

Types

type Hook

type Hook interface {
	// Establish for making connections
	Establish() error
	Fire(entry *logrus.Entry) error
	Levels() []logrus.Level
}

Hook 日志上传器

Jump to

Keyboard shortcuts

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