App:Library:LVGL:docs:Porting:Logging
https://docs.lvgl.io/8.2/porting/log.html
Logging
英文 | 自動翻訳 |
---|---|
LVGL has a built-in Log module to inform the user about what is happening in the library. |
LVGLには、ライブラリで何が起こっているかをユーザーに通知するため の組み込みのログモジュールがあります。 |
Log level
英文 | 自動翻訳 |
---|---|
To enable logging, set
The events which have a higher level than the set log level will be logged too. E.g. if you |
ロギングを有効にするには、lv_conf.h の中でLV_USE_LOG 1 と設定して、LV_LOG_LEVEL を次のいずれかの値に設定します。
設定されたログレベルよりも高いレベルのイベントもログに記録されます。 たとえば |
Printing logs
Logging with printf
英文 | 自動翻訳 |
---|---|
If your system supports |
システムがprintf をサポートしている場合、printf でログを送信するためにはlv_conf.h の中でLV_LOG_PRINTF を有効にする必要があります。
|
Custom log function
英文 | 自動翻訳 |
---|---|
If you can't use
void my_log_cb(const char * buf)
{
serial_send(buf, strlen(buf));
}
...
lv_log_register_print_cb(my_log_cb);
|
カスタム関数 例えば: void my_log_cb (const char * buf )
{
serial_send (buf 、 strlen (buf ));
}
...
lv_log_register_print_cb (my_log_cb );
|
Add logs
英文 | 自動翻訳 |
---|---|
You can also use the log module via the |
関数LV_LOG_TRACE/INFO/WARN/ERROR/USER(text) を介してログモジュールを使用することもできます。
|