「App:Library:LVGL:docs:Porting:Logging」の版間の差分
提供: robot-jp wiki
ナビゲーションに移動検索に移動4行目: | 4行目: | ||
!英文 | !英文 | ||
!自動翻訳 | !自動翻訳 | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| | | | ||
30行目: | 9行目: | ||
|} | |} | ||
+ | |||
+ | |||
+ | = Logging = | ||
+ | LVGL has a built-in ''Log'' module to inform the user about what is happening in the library. | ||
+ | |||
+ | == Log level == | ||
+ | To enable logging, set <code>LV_USE_LOG 1</code> in <code>lv_conf.h</code> and set <code>LV_LOG_LEVEL</code> to one of the following values: | ||
+ | |||
+ | * <code>LV_LOG_LEVEL_TRACE</code> A lot of logs to give detailed information | ||
+ | * <code>LV_LOG_LEVEL_INFO</code> Log important events | ||
+ | * <code>LV_LOG_LEVEL_WARN</code> Log if something unwanted happened but didn't cause a problem | ||
+ | * <code>LV_LOG_LEVEL_ERROR</code> Only critical issues, where the system may fail | ||
+ | * <code>LV_LOG_LEVEL_USER</code> Only user messages | ||
+ | * <code>LV_LOG_LEVEL_NONE</code> Do not log anything | ||
+ | |||
+ | The events which have a higher level than the set log level will be logged too. E.g. if you <code>LV_LOG_LEVEL_WARN</code>, errors will be also logged. | ||
2022年6月22日 (水) 14:39時点における版
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.
Log level
To enable logging, set LV_USE_LOG 1
in lv_conf.h
and set LV_LOG_LEVEL
to one of the following values:
LV_LOG_LEVEL_TRACE
A lot of logs to give detailed informationLV_LOG_LEVEL_INFO
Log important eventsLV_LOG_LEVEL_WARN
Log if something unwanted happened but didn't cause a problemLV_LOG_LEVEL_ERROR
Only critical issues, where the system may failLV_LOG_LEVEL_USER
Only user messagesLV_LOG_LEVEL_NONE
Do not log anything
The events which have a higher level than the set log level will be logged too. E.g. if you LV_LOG_LEVEL_WARN
, errors will be also logged.