esp_log: Implemented esp_log_level_get(TAG)

Closes https://github.com/espressif/esp-idf/pull/6573
This commit is contained in:
0xFEEDC0DE64
2021-02-18 22:43:17 +01:00
committed by Angus Gratton
parent 0f1b24891b
commit fc85f8a47d
2 changed files with 29 additions and 0 deletions
+10
View File
@@ -71,6 +71,16 @@ extern esp_log_level_t esp_log_default_level;
*/
void esp_log_level_set(const char* tag, esp_log_level_t level);
/**
* @brief Get log level for given tag, can be used to avoid expensive log statements
*
* @param tag Tag of the log to query current level. Must be a non-NULL zero terminated
* string.
*
* @return The current log level for the given tag
*/
esp_log_level_t esp_log_level_get(const char* tag);
/**
* @brief Set function used to output log entries
*