Are Android logging methods asynchronous?

我的梦境 提交于 2020-05-26 08:05:28

问题


The Android Developer documentation does not mention whether the method below (and similar ones) is synchronous or not: Log.i(String tag, String msg)

Can anyone shed some light on this ?


回答1:


android.util.Log invokes all of its methods on the calling thread. So yes, it is synchronous (and IMO it would be kind of silly if it wasn't).

You can find the source code here.



来源:https://stackoverflow.com/questions/11237445/are-android-logging-methods-asynchronous

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!