All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dk.alexandra.fresco.logging.DefaultPerformancePrinter Maven / Gradle / Ivy

There is a newer version: 1.3.7
Show newest version
package dk.alexandra.fresco.logging;

import java.util.Map.Entry;
import org.slf4j.LoggerFactory;

public class DefaultPerformancePrinter implements PerformancePrinter {

  @Override
  public void printPerformanceLog(PerformanceLogger logger) {
    String s = "";
    for (Entry e : logger.getLoggedValues().entrySet()) {
      s += "[" + e.getKey().toString() + ": " + e.getValue().toString() + "]";
    }
    LoggerFactory.getLogger(logger.getClass()).info(s);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy