fix #225 add logging to different streams for different processes.