use log API to print log to console.
Add the test case of child process write data and parent process read.