Package org.bonitasoft.engine.commons
Class LogUtil
java.lang.Object
org.bonitasoft.engine.commons.LogUtil
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetLogAfterMethod(Object classes, String methodName) Get the log message before quitting the methodstatic StringgetLogBeforeMethod(Object classes, String methodName) Get the log message on enter of the methodstatic StringgetLogOnExceptionMethod(Object classes, String methodName, Exception e) Get the log message in each catch blockstatic StringgetLogOnExceptionMethod(Object classes, String methodName, String exceptionMessage) Get the log message in each catch block
-
Constructor Details
-
LogUtil
public LogUtil()
-
-
Method Details
-
getLogBeforeMethod
Get the log message on enter of the method- Parameters:
classes- class namemethodName- method name- Returns:
- log message with String type
-
getLogAfterMethod
Get the log message before quitting the method- Parameters:
classes- class namemethodName- method name- Returns:
- log message with String type
-
getLogOnExceptionMethod
Get the log message in each catch block- Parameters:
classes- class namemethodName- method namee- 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
-