如何启用日志记录了Facebook SDK 3.0吗? [英] How to enable logging in facebook SDK 3.0?

查看:336
本文介绍了如何启用日志记录了Facebook SDK 3.0吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

近日我试图让我的哈希键使用Facebook的我的Andr​​oid应用程序。

recently i am trying to get my hash key for my android app that uses facebook.

问题是通过命令提示符方法不为我工作。

The problem is the method through the command prompt is not working for me.

所以,我发现了一种新的解决方案,说,你可以使用Facebook的消息产生的错误信息,这将使你的哈希键本身。

So i found a new solution that says you can use the facebook message to produce an error message that will give you the hash key itself.

他们说,你都应该设置私人布尔ENABLE_LOGGING = FALSE;在Facebook的util.java类也是如此。问题是我没有看到在启用日志记录是应该去的类。

They say you are supposed to set private boolean ENABLE_LOGGING = false; to true in the facebook util.java class. The problem is i dont see in the class where enable logging is supposed to go.

谁能告诉我如何获得SDK在logcat中打印出记录?

Could anyone tell me how to get the sdk to print out logging in the logcat?

推荐答案

要启用日志记录调用的函数 Settings.addLoggingBehavior(LoggingBehavior行为)

To enable logging call the function Settings.addLoggingBehavior(LoggingBehavior behavior)

例如,如果你想显示请求信息,请致电

For example if you want to display Request information call

Settings.addLoggingBehavior(LoggingBehavior.REQUESTS);

您可以检查类LoggingBehavior调试等操作:
https://developers.facebook.com/docs/reference/android/3.0/LoggingBehavior

You can check the class LoggingBehavior to debug other operations: https://developers.facebook.com/docs/reference/android/3.0/LoggingBehavior

这篇关于如何启用日志记录了Facebook SDK 3.0吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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