View log
Add log
Required header file
#include "utils/Log.h"
FlywizOS print uniformly calls
LOGD
orLOGE
macro output, and the usage method is the same as that of C languageprintf
; there are examples of calling in the code generated by default (commented out by default, open when needed) :static bool onButtonClick_Button1(ZKButton *pButton) { LOGD("onButtonClick_Button1\n"); return true; }
View print
After connecting ADB, you can view the print log of the program through our tool. The specific steps are as follows :
On the menu bar, select FlywizOS -> Show Log Perspective, the tool will switch to another interface.
In the lower left corner of the new interface, select LogCat, if the connection is normal, in the red box area on the right, you will see the machine's print log.
If you want to return to the code editing interface, click the FlywizOS icon in the upper right corner of the tool.