Proxy stdio for seamless local/remote logging