code: final synchronized void setTraceSpec(TraceSpecification ts) {
          // update active trace based on incoming trace specification
          if (updateTraceSpec(ts)) {
              // If a listener has been registered with this TraceComponent call
              // the logger to inform it of the change in traceSpec
              if (trStateChangeListener != null)
                  trStateChangeListener.traceStateChanged();
  
              if (logger != null)
                  logger.setLevel(getLoggerLevel());
  
              TrConfigurator.traceComponentUpdated(this);
          }
      }
docs: Update the active trace settings for this component based on the provided specification.
  Package-protected: Not an SPI method.
  
  @param ts TraceSpecification