ESP32关闭调试信息过滤调试信息·

ESP32使用代码关闭或过滤调试信息

Hugh

Hugh

222 0

调用esp_log_level_set()方法,例如:

esp_log_level_set(RYMCU_TAG, ESP_LOG_NONE); //无输出

参数定义如下:

typedef enum {
ESP_LOG_NONE,       /*!< No log output */
ESP_LOG_ERROR,      /*!< Critical errors, software module can not recover on its own */
ESP_LOG_WARN,       /*!< Error conditions from which recovery measures have been taken */
ESP_LOG_INFO,       /*!< Information messages which describe normal flow of events */
ESP_LOG_DEBUG,      /*!< Extra information which is not necessary for normal use (values, pointers, sizes, etc). */
ESP_LOG_VERBOSE     /*!< Bigger chunks of debugging information, or frequent messages which can potentially flood the output. */
} esp_log_level_t;

相关文章

优先推荐同专题、同标签和同作者内容,补足热门文章。

评论 0

登录 后参与评论

评论

成为第一个评论的人