Writing timestamped logs, possibly with the PID or process-role annotated, is where I'd start. At first you could simple inspect by hand, or even sort the two logs by timestamp to interleave them. Later you could write a separate logging process, listening on a socket, and have it do the interleaving of log lines, if that's important.
For quick and dirty inspection, strace -f will follow child syscalls.