Added logging feature for child processes