If you want a time column and 3 data columns, you will also have to modify the way your program operates. As it is now, you look at each value from each channel and log each one on a separate line. Do you want to record if all three exceed the threshold, one out of three, etc.?