Android development can also be categorized as embedded device development, even if not embedded development, still need to pay attention to the use of memory and processing. It's great to develop a good habit to help yourself.
You can see this comment in the source code of the log:
The order in terms of verbosity, from least to most are * ERROR, WARN, INFO, DEBUG, VERBOSE. Verbose should never be compiled * to an application except during development. Debug logs is compiled * in but the stripped at runtime. Error, warning and info logs is always kept.
This tells us:
LOG.V (), as long as the development phase is compiled, other conditions will not be compiled. In other words, when you package a signature, all verbose-level logs are not compiled into the APK, and it is impossible to print to memory.
Debug, which has been compiled all the time, is skipped at runtime and can be used frequently in programs.
As for the error,warning,info, it will be compiled, the runtime will not be ignored, that is, when the runtime is printed into memory, so if the program used in these three, in the release of the program must be commented out. The other three main uses are more convenient to find log logs.