clog

package
v1.1.54 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(address, serviceName, serviceVersion string, retries int, retryDelay time.Duration, usingClientLoadBalancing bool)

func SendDbq added in v1.1.7

func SendDbq(depth int, ins Instance, severity Severity, m SendDbqModel, onGoroutine bool)

func SendInfo

func SendInfo(depth int, ins Instance, severity Severity, message string, data *string, onGoroutine bool)

func SendService

func SendService(depth int, ins Instance, severity Severity, m SendServiceModel, onGoroutine bool)

Types

type Instance

type Instance struct {
	UID             string
	SvcParent       string
	UserId          *string
	PartnerId       *string
	XID             *string
	EndpointVersion string
	StartAt         time.Time
}

func New

func New() *Instance

func (*Instance) Error

func (slf *Instance) Error(message string, data ...string)

func (*Instance) Info

func (slf *Instance) Info(message string, data ...string)

func (*Instance) SetId added in v1.1.21

func (slf *Instance) SetId(userId, partnerId, xid *string)

func (*Instance) Warning

func (slf *Instance) Warning(message string, data ...string)

type SendDbqModel added in v1.1.7

type SendDbqModel struct {
	StartAt    time.Time
	ExecFunc   *string
	ExecPath   *string
	SqlQuery   string
	SqlPars    *string
	Error      *string
	StackTrace *string
}

type SendServiceModel

type SendServiceModel struct {
	Endpoint   string
	ExecFunc   *string
	ExecPath   *string
	Message    *string
	ReqHeader  *string
	ReqBody    *string
	ReqParam   *string
	ResData    *string
	ResCode    *int
	Data       *string
	Error      *string
	StackTrace *string
	ClientIP   string
}

type Severity

type Severity int
const (
	Info Severity = iota + 1
	Warning
	Error
)

func (Severity) Index

func (s Severity) Index() int

func (Severity) String

func (s Severity) String() string

Jump to

Keyboard shortcuts

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