Is the android log running in the main thread?

Does the Android logger work in the main thread? If so, are large records recording performance impacts on user interface visualization?

+4
source share
1 answer

The answer to your first question depends on where you call the Journal , so yes, it also works in the main thread. You are allowed to post the magazine anywhere.

Since it prints a log in your console, it definitely affected the performance of your application.

Here is an example from the docs:

Log.v(TAG, "index=" + i);

, , Log.d, StringBuilder : StringBuilder, . , , gc. , , , .

0

Source: https://habr.com/ru/post/1693560/


All Articles