Printf prints the given message only if the target is enabled.
(format string, args ...interface{})
| 49 | |
| 50 | // Printf prints the given message only if the target is enabled. |
| 51 | func (t Target) Printf(format string, args ...interface{}) { |
| 52 | if int32(t)¤t.Load() != 0 { |
| 53 | logger.Output(2, fmt.Sprintf(format, args...)) // nolint: errcheck |
| 54 | } |
| 55 | } |