[communication] Adds argument parsing and logging to a file to bn_debug_console.