Added code to print logging data out to a seperate file per channel