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

Method Printf

pkg/flog/flog.go:107–117  ·  view source on GitHub ↗

Printf calls v.f.logger.Printf to print to the logger. Arguments are handled in the manner of fmt.Printf.

(format string, i ...interface{})

Source from the content-addressed store, hash-verified

105// Printf calls v.f.logger.Printf to print to the logger.
106// Arguments are handled in the manner of fmt.Printf.
107func (v Verbose) Printf(format string, i ...interface{}) {
108 if !v.ok {
109 return
110 }
111 if atomic.LoadInt32(&v.f.showLineNum) != 1 {
112 v.f.logger.Printf(format, i...)
113 } else {
114 _, fn, line, _ := runtime.Caller(1)
115 v.f.logger.Printf(fmt.Sprintf("%s => %s:%d", format, path.Base(fn), line), i...)
116 }
117}
118
119// Println calls v.f.logger.Println to print to the logger.
120// Arguments are handled in the manner of fmt.Println.

Callers 15

StartMethod · 0.80
ShutdownMethod · 0.80
nextMethod · 0.80
destroyOnClusterMethod · 0.80
asyncPutOnBackupMethod · 0.80
syncPutOnClusterMethod · 0.80
atomicIncrDecrMethod · 0.80
getPutMethod · 0.80
atomicIncrByFloatMethod · 0.80
deleteBackupOnClusterMethod · 0.80

Calls

no outgoing calls

Tested by 5

TestDMap_Atomic_IncrFunction · 0.64
TestDMap_Atomic_DecrFunction · 0.64
TestDMap_Atomic_GetPutFunction · 0.64