code: public static void printStackTrace(final String message, final StackTraceElement[] stackTraces, final Logger logger, final LogLevel logLevel) {
          String stackTraceString = "";
          for (final StackTraceElement stackTrace : stackTraces) {
              stackTraceString += stackTrace.toString() + "\n";
          }
  
          Printer.print((message == null ? "" : message) + "\n=== Stacktrace ===\n" + stackTraceString + "==================", logLevel, logger);
      }
docs: Method prints the given stack trace in a human readable way.
  
  @param message     the reason for printing the stack trace.
  @param stackTraces the stack trace to print.
  @param logger      the logger used for printing.
  @param logLevel    the log level used for logging the stack trace.