code: public static void printThreadStackTrace(TraceComponent logger, Thread thread) {
          if (logger.isDebugEnabled()) {
              chTrace.traceThreadStack(logger, thread);
          }
      }
docs: Print debug stacktrace using given trace component.
  
  @param logger
  @param thread