I would like to know how to log all output from separate spawned processes to separate files. For example, I am developing a program in which I need to log the execution of "main" and within main, I need to spawn two separate processes that connect to a serial console port for debug info. I don't know what to expect in the output of the spawned processes, just that I want to capture it and write it to separate files.
One process will be connected to the serial port of Module A and the second process will connect to the serial port of Module B. I can't figure out how to efficiently do this.
Any ideas are greatly appreciated.
David
One process will be connected to the serial port of Module A and the second process will connect to the serial port of Module B. I can't figure out how to efficiently do this.
Any ideas are greatly appreciated.
David