Logging subprocess output