Class LogUtil

java.lang.Object
org.bonitasoft.engine.commons.LogUtil

public class LogUtil extends 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 Details

    • LogUtil

      public LogUtil()
  • Method Details

    • getLogBeforeMethod

      public static String getLogBeforeMethod(Object classes, 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 String getLogAfterMethod(Object classes, 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 String getLogOnExceptionMethod(Object classes, String methodName, 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 String getLogOnExceptionMethod(Object classes, String methodName, String exceptionMessage)
      Get the log message in each catch block
      Parameters:
      classes -
      methodName -
      exceptionMessage -
      Returns:
      log message with String type