aliyunlog

package
v1.5.23 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Close 关闭日志服务

func Error

func Error(topic string, logs map[string]string) error

Error 记录异常日志

func Info

func Info(topic string, logs map[string]string) error

Info 记录info日志

func InitLog

func InitLog(configName, LogStore string)

InitLog 初始化日志

Types

type AliyunLog

type AliyunLog struct {
	AccessKey string
	SecretKey string
	Endpoint  string
	Project   string
	LogStore  string
	HostName  string
	Log       *producer.Producer
}

AliyunLog 阿里云日志配置结构体

var LogClient AliyunLog

LogClient 对外原生实例

Jump to

Keyboard shortcuts

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