Class BambooLogUtils

java.lang.Object
com.atlassian.bamboo.utils.BambooLogUtils

@Deprecated public final class BambooLogUtils extends Object
Deprecated.
since 9.3 for use of log4j 2 API. Use BambooLog4j2Utils
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.log4j.Priority
    getLogLevel(com.google.common.base.Stopwatch stopWatch, int infoThresholdSeconds, int warnThresholdSeconds, int errorThresholdSeconds)
    Deprecated.
    Returns the log level according to the supplied info/warn/error thresholds.
    static org.apache.log4j.Priority
    getLogLevel(com.google.common.base.Stopwatch stopWatch, Duration infoThreshold, Duration warnThreshold, Duration errorThreshold)
    Deprecated.
    Returns the log level according to the supplied info/warn/error thresholds.
    static void
    logOperationTime(org.apache.log4j.Logger log, com.google.common.base.Stopwatch stopWatch, int infoThresholdSeconds, int warnThresholdSeconds, int errorThresholdSeconds, String operation)
    Deprecated.
     
    static void
    logOperationTime(org.apache.log4j.Logger log, com.google.common.base.Stopwatch stopWatch, Duration infoThreshold, Duration warnThreshold, Duration errorThreshold, String operation)
    Deprecated.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getLogLevel

      public static org.apache.log4j.Priority getLogLevel(com.google.common.base.Stopwatch stopWatch, int infoThresholdSeconds, int warnThresholdSeconds, int errorThresholdSeconds)
      Deprecated.
      Returns the log level according to the supplied info/warn/error thresholds.
    • getLogLevel

      public static org.apache.log4j.Priority getLogLevel(com.google.common.base.Stopwatch stopWatch, Duration infoThreshold, Duration warnThreshold, Duration errorThreshold)
      Deprecated.
      Returns the log level according to the supplied info/warn/error thresholds.
    • logOperationTime

      public static void logOperationTime(org.apache.log4j.Logger log, com.google.common.base.Stopwatch stopWatch, int infoThresholdSeconds, int warnThresholdSeconds, int errorThresholdSeconds, String operation)
      Deprecated.
    • logOperationTime

      public static void logOperationTime(org.apache.log4j.Logger log, com.google.common.base.Stopwatch stopWatch, Duration infoThreshold, Duration warnThreshold, Duration errorThreshold, String operation)
      Deprecated.