本文整理汇总了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));
}