logger

package
v0.0.0-...-4235fc2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(err error)

func GetConfig

func GetConfig() *config

func Info

func Info(msg string, args ...interface{})

func InitTcpConnect

func InitTcpConnect(host, port string, RetryTimes int, intervals ...time.Duration)

func SendLogSwitch

func SendLogSwitch(switchs bool)

func SetLogConfig

func SetLogConfig(topic, types, host, version, logPath string)

func Warn

func Warn(msg string, args ...interface{})

Types

type TcpClient

type TcpClient struct {
	Host string
	Port string

	Interval   time.Duration `json:"interval"`
	RetryTimes int           `json:"retry_times"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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