code: protected void writePropertiesToLog(Logger logger, Level level) {
      writeToLog(logger, level, getMapAsString(this.properties, separator), null);
  
      if (this.exception != null) {
        writeToLog(this.logger, Level.ERROR, "Error:", this.exception);
      }
    }
docs: Write 'properties' map to given log in given level - with pipe separator between each entry
  Write exception stack trace to 'logger' in 'error' level, if not empty
  @param logger
  @param level - of logging