Add logging to the graph generator