How do I set up the data logging function for the target flow switch?