MCPcopy
hub / github.com/olric-data/olric / V

Method V

pkg/flog/flog.go:93–98  ·  view source on GitHub ↗

V reports whether verbosity at the call site is at least the requested level. The returned value is a struct of type Verbose, which implements Printf and Println

(level int32)

Source from the content-addressed store, hash-verified

91// V reports whether verbosity at the call site is at least the requested level. The returned value is a struct
92// of type Verbose, which implements Printf and Println
93func (f *Logger) V(level int32) Verbose {
94 return Verbose{
95 ok: atomic.LoadInt32(&f.level) >= level,
96 f: f,
97 }
98}
99
100// Ok will return true if this log level is enabled, guarded by the value of verbosity level.
101func (v Verbose) Ok() bool {

Callers 15

StartMethod · 0.80
ShutdownMethod · 0.80
destroyOnClusterMethod · 0.80
asyncPutOnBackupMethod · 0.80
syncPutOnClusterMethod · 0.80
atomicIncrDecrMethod · 0.80
getPutMethod · 0.80
atomicIncrByFloatMethod · 0.80
deleteBackupOnClusterMethod · 0.80
janitorMethod · 0.80
publishEventMethod · 0.80
unlockKeyMethod · 0.80

Calls

no outgoing calls

Tested by 5

TestDMap_Atomic_IncrFunction · 0.64
TestDMap_Atomic_DecrFunction · 0.64
TestDMap_Atomic_GetPutFunction · 0.64