public final class BambooLogUtils extends Object
Modifier and Type | Method and Description |
---|---|
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,
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 void logOperationTime(org.apache.log4j.Logger log, com.google.common.base.Stopwatch stopWatch, int infoThresholdSeconds, int warnThresholdSeconds, int errorThresholdSeconds, String operation)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.