Class LogFactory

java.lang.Object
com.softwaremining.log.LogFactory

public class LogFactory extends Object
Factory for creating Log helpers.
  • Constructor Details

    • LogFactory

      public LogFactory()
  • Method Details

    • getLog

      public static Log getLog(Class<?> source)
    • clearThrowable

      public static Throwable clearThrowable(Throwable source)
    • printNonSMStackTrace

      public static String printNonSMStackTrace(String message)
      FOr internal use only print the top nn lines from the stackTace() -
      Parameters:
      minElementNumber -
      maxElements -
      Returns:
    • getExceptionMessageChain

      public static List<String> getExceptionMessageChain(Throwable throwable)
    • printNonSMStackTrace

      public static String printNonSMStackTrace(Throwable exception)
    • stackTraceToString

      public static String stackTraceToString(Throwable exception)