Package org.bonitasoft.engine.commons
Class LogUtil
- java.lang.Object
-
- org.bonitasoft.engine.commons.LogUtil
-
public class LogUtil extends java.lang.ObjectThis class is for Add call to techinalLoggerService.log with severity TRACE in all Service Implementation public method- Since:
- 6.0
-
-
Constructor Summary
Constructors Constructor Description LogUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetLogAfterMethod(java.lang.Object classes, java.lang.String methodName)Get the log message before quitting the methodstatic java.lang.StringgetLogBeforeMethod(java.lang.Object classes, java.lang.String methodName)Get the log message on enter of the methodstatic java.lang.StringgetLogOnExceptionMethod(java.lang.Object classes, java.lang.String methodName, java.lang.Exception e)Get the log message in each catch blockstatic java.lang.StringgetLogOnExceptionMethod(java.lang.Object classes, java.lang.String methodName, java.lang.String exceptionMessage)Get the log message in each catch block
-
-
-
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 namemethodName- 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 namemethodName- 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 namemethodName- method namee- 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
-
-