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)
| 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 |
| 93 | func (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. |
| 101 | func (v Verbose) Ok() bool { |
no outgoing calls