Package com.atlassian.bamboo.utils
Class DebugUtils
- java.lang.Object
-
- com.atlassian.bamboo.utils.DebugUtils
-
public class DebugUtils extends Object
A class that allows you to easily add object identity / stack trace information. It's slow and expensive, so shouldn't be kept in production code
-
-
Field Summary
Fields Modifier and Type Field Description static StringHIBERNATE_SQL_LOGGER_NAME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DebugUtilslogId(String fieldName, Object o)DebugUtilslogStack()static voidlogTimingPoint(String label, BuildTimingPoint event, org.apache.logging.log4j.Logger log1)static voidtoggleSQLLogging(org.apache.logging.log4j.Level logLevel)Sets the SQL loggingstatic DebugUtilswithLog(org.apache.logging.log4j.Logger log)
-
-
-
Field Detail
-
HIBERNATE_SQL_LOGGER_NAME
public static final String HIBERNATE_SQL_LOGGER_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
withLog
public static DebugUtils withLog(org.apache.logging.log4j.Logger log)
-
logTimingPoint
public static void logTimingPoint(String label, BuildTimingPoint event, org.apache.logging.log4j.Logger log1)
-
logId
public DebugUtils logId(String fieldName, Object o)
-
logStack
public DebugUtils logStack()
-
toggleSQLLogging
public static void toggleSQLLogging(org.apache.logging.log4j.Level logLevel)
Sets the SQL logging- Parameters:
logLevel-
-
-