Print prints the given message only if the target is enabled.
(args ...interface{})
| 42 | |
| 43 | // Print prints the given message only if the target is enabled. |
| 44 | func (t Target) Print(args ...interface{}) { |
| 45 | if int32(t)¤t.Load() != 0 { |
| 46 | logger.Output(2, fmt.Sprint(args...)) // nolint: errcheck |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | // Printf prints the given message only if the target is enabled. |
| 51 | func (t Target) Printf(format string, args ...interface{}) { |