I have been attempting to redirect the logging function for the DJI OSDK in C++ to a txt file. I tried to redirect the std::cout stream to file in the main function, accordi