本文整理匯總了Java中com.evolveum.midpoint.util.logging.Trace.info方法的典型用法代碼示例。如果您正苦於以下問題:Java Trace.info方法的具體用法?Java Trace.info怎麽用?Java Trace.info使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.evolveum.midpoint.util.logging.Trace
的用法示例。
在下文中一共展示了Trace.info方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: dumpCsv
import com.evolveum.midpoint.util.logging.Trace; //導入方法依賴的package包/類
private void dumpCsv(Trace logger, PrintWriter pw, String prefix, AggregateRecord[] data) {
long totalTime = 0;
int totalRecords = 0;
if (data != null) {
StringBuilder sb = new StringBuilder();
sb.append(prefix);
for (int i = 0; i < data.length; i++) {
totalTime += data[i].totalTime;
totalRecords += data[i].records;
sb.append(";").append(data[i].records);
}
sb.append(";").append(totalRecords);
sb.append(";").append(totalTime);
sb.append(";");
if (totalRecords > 0) {
sb.append(totalTime/totalRecords);
} else {
sb.append("0");
}
logger.info(sb.toString());
pw.println(sb.toString());
}
}
示例2: dumpText
import com.evolveum.midpoint.util.logging.Trace; //導入方法依賴的package包/類
private void dumpText(Trace logger, String label, AggregateRecord[] data, AggregateRecord total) {
long totalTime = 0;
int totalRecords = 0;
if (data != null) {
for (int i = 0; i < data.length; i++) {
totalTime += data[i].totalTime;
totalRecords += data[i].records;
}
total.totalTime += totalTime;
total.records += totalRecords;
}
logger.info(" ---> {}: avg {} ms", label, totalRecords > 0 ? ((float) totalTime)/totalRecords : 0);
if (data != null) {
for (int i = 0; i < data.length; i++) {
logger.info("up to {}: {}", BUCKETS[i], data[i].records);
}
}
}
示例3: logAllLevels
import com.evolveum.midpoint.util.logging.Trace; //導入方法依賴的package包/類
private void logAllLevels(Trace logger, String subsystemName) {
String message = MARKER+" "+subsystemName;
String previousSubsystem = MidpointInterceptor.swapSubsystemMark(subsystemName);
logger.trace(message);
logger.debug(message);
logger.info(message);
logger.warn(message);
logger.error(message);
MidpointInterceptor.swapSubsystemMark(previousSubsystem);
}
示例4: logProfilingEvent
import com.evolveum.midpoint.util.logging.Trace; //導入方法依賴的package包/類
public void logProfilingEvent(Trace LOGGER){
LOGGER.info(className + "->" + methodName + " est: " + formatExecutionTime(estimatedTime));
}