Secure logging to external server