public static void logStackTrace(Level level, Throwable throwable) {
    logStackTrace(level, throwable, null);
  }
Logs the stack trace for the given Throwable if logger is initialized else prints the stack
trace using System.out.

@param level severity level to log at
@param throwable Throwable to log stack trace for
geode-core/src/main/java/org/apache/geode/admin/jmx/internal/MBeanUtils.java