added preference to allow logging and sending log file to developer