Class LogUtils


  • public final class LogUtils
    extends java.lang.Object
    Utility methods for loggin
    Version:
    $Id: LogUtils.java,v 1.4 2005/08/08 05:21:51 thlee Exp $ $Name: $
    Author:
    TiongHiang Lee (thlee@onemindsoft.org)
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private LogUtils()
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getTrace​(java.lang.Throwable e)
      Get the stack trace in a string
      static void initLoggingFromClassPath()
      Init java logging by looking for logging.properties in the class paths
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LogUtils

        private LogUtils()
    • Method Detail

      • initLoggingFromClassPath

        public static void initLoggingFromClassPath()
        Init java logging by looking for logging.properties in the class paths
      • getTrace

        public static java.lang.String getTrace​(java.lang.Throwable e)
        Get the stack trace in a string
        Parameters:
        e - the exception
        Returns:
        the stack trace string