Sanitise logging for console