Improve child_process_sync
Add logLevel
Extract logging test