     |> Enum.into([])
   end
 
-end+  defp log_path(session_id) do
+    "events_#{session_id}.log"
+  end
+
+end

        {{peer_id, peer_name}, command}
      end)
      |> (fn peers_and_commands ->
        send_command(peers_and_commands)
        get_status(peers, :pinging)
        peers
      end).()
    end).()

  alias Vivaldi.Peer.{Config, ExperimentCoordinator}
  alias Vivaldi.Experiment.Logcentral

  def up(name, cookie, session_id \\ 1) do
    {:ok, _} = Node.start name
    Node.set_cookie cookie
    {:ok, _} = Logcentral.start_link(log_path(session_id))
  end

  def start(session_id \\ 1) do
    Node.list()
    |> Enum.map(fn name ->
      [node_id, ip_addr] = name |> Atom.to_string |> String.split("@")
