I am supposed to create a network monitoring tool using python and send the output to log file. I have been searching online and don't have any luck finding how to send the result to log file. Can you please give me example on how to send the log from the output? Thanks!