Using RemoteOutputStream for better robustness and performance when copying logs.