slow

package
Version: v0.9.3 Latest Latest
Warning

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

Go to latest
Published: May 19, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeSlowLogLevel

func ChangeSlowLogLevel(lv int)

func LogDebugSlowWrite

func LogDebugSlowWrite(cost time.Duration, thres time.Duration, lvFor int32, si SlowLogInfo) (string, bool)

func LogLargeBatchWrite

func LogLargeBatchWrite() (string, bool)

func LogLargeCollection

func LogLargeCollection(sz int, si SlowLogInfo) (string, bool)

func LogLargeValue

func LogLargeValue() (string, bool)

func LogSlowDBWrite

func LogSlowDBWrite(cost time.Duration, si SlowLogInfo) (string, bool)

func LogSlowForSteps

func LogSlowForSteps(thres time.Duration, lvFor int32, si SlowLogInfo, costList ...time.Duration) (string, bool)

func SetLogger

func SetLogger(level int32, logger common.Logger)

func SetRemoteLogger added in v0.9.0

func SetRemoteLogger(remote string)

Types

type SlowLogInfo

type SlowLogInfo struct {
	Scope string
	Key   string
	Note  string
}

func NewSlowLogInfo

func NewSlowLogInfo(scope string, key string, note string) SlowLogInfo

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL