使用licurl这个库,在下载文件的同时写日志文件
如题。我发现当我这样设置
FILE* flie, Err_log;
file = xxx, Err_log = xxx;
curl_easy_setopt(m_curl, CURLOPT_URL, url);
curl_easy_setopt(m_curl, CURLOPT_WRITEDATA, file);
curl_easy_setopt(m_curl, CURLOPT_WRITEFUNCTION, &WriteFile);
curl_easy_setopt(m_curl, CURLOPT_NOPROGRESS, FALSE);
curl_easy_setopt(m_curl, CURLOPT_PROGRESSFUNCTION, &PrintProcess);
curl_easy_setopt(m_curl, CURLOPT_VERBOSE, 1);
curl_easy_setopt(m_curl, CURLOPT_STDERR, Err_log);
应该是不能同时操作多个文件?请问我如何设置可以在下载文件的同时,输出下载过程中的日志?
提前谢谢诸位大神了。