esp_log_cache_get_level() function
Get the log level for a specific log tag from the cache. This function retrieves the log level for the specified log tag from the cache. If the tag is found in the cache, its corresponding log level will be returned via the `level` pointer argument. If the tag is not present in the cache, this function returns `false` to indicate a cache miss, and the `level` value remains unchanged.
Arguments
tag
The log tag for which to retrieve the log level from the cache.
level
Pointer to a variable where the retrieved log level will be stored.
Return value
`true` if the log level was successfully retrieved from the cache, `false` if the tag was not found in the cache.