Package com.atlassian.bamboo.utils
Class DebugUtils
java.lang.Object
com.atlassian.bamboo.utils.DebugUtils
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 -
Method Summary
Modifier and TypeMethodDescriptionlogStack()static voidlogTimingPoint(String label, BuildTimingPoint event, org.apache.logging.log4j.Logger log1) static voidsetLogLevel(String loggerName, org.apache.logging.log4j.Level level) static voidsetLogLevel(org.apache.logging.log4j.Logger logger, org.apache.logging.log4j.Level level) static voidsetRootLogLevel(org.apache.logging.log4j.Level level) static voidtoggleSQLLogging(org.apache.logging.log4j.Level level) Sets the SQL loggingstatic DebugUtilswithLog(org.apache.logging.log4j.Logger log)
-
Field Details
-
HIBERNATE_SQL_LOGGER_NAME
- See Also:
-
-
Method Details
-
withLog
-
logTimingPoint
public static void logTimingPoint(String label, BuildTimingPoint event, org.apache.logging.log4j.Logger log1) -
logId
-
logStack
-
toggleSQLLogging
public static void toggleSQLLogging(org.apache.logging.log4j.Level level) Sets the SQL logging- Parameters:
level-
-
setLogLevel
public static void setLogLevel(org.apache.logging.log4j.Logger logger, org.apache.logging.log4j.Level level) -
setLogLevel
-
setRootLogLevel
public static void setRootLogLevel(org.apache.logging.log4j.Level level)
-