Android日志记录方法是异步的吗? [英] Are Android logging methods asynchronous?
本文介绍了Android日志记录方法是异步的吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Android Developer文档未提及以下方法(和类似方法)是否同步:
The Android Developer documentation does not mention whether the method below (and similar ones) is synchronous or not: Log.i(String tag, String msg)
任何人都可以对此有所了解吗?
推荐答案
android.util.Log
在调用线程上调用其所有方法.所以是的,它是同步的(如果不是的话,IMO会很愚蠢).
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).
您可以找到源代码 查看全文