public final class BambooLogUtils extends Object
Modifier and Type | Method and Description |
---|---|
static org.apache.log4j.Priority |
getLogLevel(com.google.common.base.Stopwatch stopWatch,
Duration infoThreshold,
Duration warnThreshold,
Duration errorThreshold)
Returns the log level according to the supplied info/warn/error thresholds.
|
static org.apache.log4j.Priority |
getLogLevel(com.google.common.base.Stopwatch stopWatch,
int infoThresholdSeconds,
int warnThresholdSeconds,
int errorThresholdSeconds)
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,
Duration infoThreshold,
Duration warnThreshold,
Duration errorThreshold,
String operation) |
static void |
logOperationTime(org.apache.log4j.Logger log,
com.google.common.base.Stopwatch stopWatch,
int infoThresholdSeconds,
int warnThresholdSeconds,
int errorThresholdSeconds,
String operation) |
public static org.apache.log4j.Priority getLogLevel(com.google.common.base.Stopwatch stopWatch, int infoThresholdSeconds, int warnThresholdSeconds, int errorThresholdSeconds)
public static org.apache.log4j.Priority getLogLevel(com.google.common.base.Stopwatch stopWatch, Duration infoThreshold, Duration warnThreshold, Duration errorThreshold)
public static void logOperationTime(org.apache.log4j.Logger log, com.google.common.base.Stopwatch stopWatch, int infoThresholdSeconds, int warnThresholdSeconds, int errorThresholdSeconds, String operation)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.