Documentation
¶
Index ¶
- func ChangeSlowLogLevel(lv int)
- func LogDebugSlowWrite(cost time.Duration, thres time.Duration, lvFor int32, si SlowLogInfo) (string, bool)
- func LogLargeBatchWrite() (string, bool)
- func LogLargeCollection(sz int, si SlowLogInfo) (string, bool)
- func LogLargeValue() (string, bool)
- func LogSlowDBWrite(cost time.Duration, si SlowLogInfo) (string, bool)
- func LogSlowForSteps(thres time.Duration, lvFor int32, si SlowLogInfo, costList ...time.Duration) (string, bool)
- func SetLogger(level int32, logger common.Logger)
- func SetRemoteLogger(remote string)
- type SlowLogInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeSlowLogLevel ¶
func ChangeSlowLogLevel(lv int)
func LogDebugSlowWrite ¶
func LogLargeBatchWrite ¶
func LogLargeCollection ¶
func LogLargeCollection(sz int, si SlowLogInfo) (string, bool)
func LogLargeValue ¶
func LogSlowDBWrite ¶
func LogSlowDBWrite(cost time.Duration, si SlowLogInfo) (string, bool)
func LogSlowForSteps ¶
func SetRemoteLogger ¶ added in v0.9.0
func SetRemoteLogger(remote string)
Types ¶
type SlowLogInfo ¶
func NewSlowLogInfo ¶
func NewSlowLogInfo(scope string, key string, note string) SlowLogInfo
Click to show internal directories.
Click to hide internal directories.