code: public static void logExpensive(Level level, String message) {
      LogRecord rec = new ELKILogRecord(level, message);
      String[] caller = inferCaller();
      if(caller != null) {
        rec.setSourceClassName(caller[0]);
        rec.setSourceMethodName(caller[1]);
        Logger logger = Logger.getLogger(caller[0]);
        logger.log(rec);
      }
      else {
        Logger.getAnonymousLogger().log(rec);
      }
    }
docs: Expensive logging function that is convenient, but should only be used in
  rare conditions.
  
  For 'frequent' logging, use more efficient techniques, such as explained in
  the {@link de.lmu.ifi.dbs.elki.logging logging package documentation}.
  
  @param level Logging level
  @param message Message to log.