Adding the log_gen.py file for generating logs. Most of this was contributed by @gwenshap
with some improvements made by @markgrover