Class LogUtil


  • public class LogUtil
    extends java.lang.Object
    This class is for Add call to techinalLoggerService.log with severity TRACE in all Service Implementation public method
    Since:
    6.0
    Author:
    Hongwen Zang, Matthieu Chaffotte
    • Constructor Summary

      Constructors 
      Constructor Description
      LogUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getLogAfterMethod​(java.lang.Object classes, java.lang.String methodName)
      Get the log message before quitting the method
      static java.lang.String getLogBeforeMethod​(java.lang.Object classes, java.lang.String methodName)
      Get the log message on enter of the method
      static java.lang.String getLogOnExceptionMethod​(java.lang.Object classes, java.lang.String methodName, java.lang.Exception e)
      Get the log message in each catch block
      static java.lang.String getLogOnExceptionMethod​(java.lang.Object classes, java.lang.String methodName, java.lang.String exceptionMessage)
      Get the log message in each catch block
      • Methods inherited from class java.lang.Object

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

      • LogUtil

        public LogUtil()
    • Method Detail

      • getLogBeforeMethod

        public static java.lang.String getLogBeforeMethod​(java.lang.Object classes,
                                                          java.lang.String methodName)
        Get the log message on enter of the method
        Parameters:
        classes - class name
        methodName - method name
        Returns:
        log message with String type
      • getLogAfterMethod

        public static java.lang.String getLogAfterMethod​(java.lang.Object classes,
                                                         java.lang.String methodName)
        Get the log message before quitting the method
        Parameters:
        classes - class name
        methodName - method name
        Returns:
        log message with String type
      • getLogOnExceptionMethod

        public static java.lang.String getLogOnExceptionMethod​(java.lang.Object classes,
                                                               java.lang.String methodName,
                                                               java.lang.Exception e)
        Get the log message in each catch block
        Parameters:
        classes - class name
        methodName - method name
        e - Exception
        Returns:
        log message with String type
      • getLogOnExceptionMethod

        public static java.lang.String getLogOnExceptionMethod​(java.lang.Object classes,
                                                               java.lang.String methodName,
                                                               java.lang.String exceptionMessage)
        Get the log message in each catch block
        Parameters:
        classes -
        methodName -
        exceptionMessage -
        Returns:
        log message with String type