登录libcurl [英] logging in libcurl

查看:245
本文介绍了登录libcurl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何修改libcurl,以便将所有错误描述收集在一个公共日志文件中? 我正在尝试将libcurl移植到android,并在adb上显示curl日志.有没有办法记录libcurl的所有活动?

How to modify libcurl so that all the error descriptions are collected in a common log file ? I am trying to port libcurl to android and display curl logs on adb. Is there a way to log all the activities of libcurl ?

推荐答案

简单地使用

How about simply using CURLOPT_DEBUGFUNCTION? It was designed for exactly such a purpose...

这篇关于登录libcurl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆