// SetLogger sets the logger to use for tracing. func SetLogger(l *log.Logger) { logger = l }
// Print prints the given message only if the target is enabled. func (t Target) Print(args ...interface{}) { if int32(t)¤t != 0 { //clq//if int32(t)¤t.Load() != 0 { logger.Output(2, fmt.Sprint(args...)) // nolint: errcheck } }
// Printf prints the given message only if the target is enabled. func (t Target) Printf(format string, args ...interface{}) { if int32(t)¤t != 0 { //clq //if int32(t)¤t.Load() != 0 { logger.Output(2, fmt.Sprintf(format, args...)) // nolint: errcheck } }