aliyun

package module
v2.0.0-...-a803e9d Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 8 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	log.Logger

	GetProducer() *producer.Producer
	Close() error
}

Logger see more detail https://github.com/aliyun/aliyun-log-go-sdk

func NewAliyunLog

func NewAliyunLog(options ...Option) Logger

NewAliyunLog new a aliyun logger with options.

type Option

type Option func(alc *options)

func WithAccessKey

func WithAccessKey(ak string) Option

func WithAccessSecret

func WithAccessSecret(as string) Option

func WithEndpoint

func WithEndpoint(endpoint string) Option

func WithLogstore

func WithLogstore(logstore string) Option

func WithProject

func WithProject(project string) Option

Jump to

Keyboard shortcuts

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