esp_log_cache_add() function
Add a log tag entry to the cache. This function adds a new log tag entry to the cache with the provided log level. If the cache is not full, the new entry will be appended to the end of the cache. If the cache is already full, the oldest entry in the cache will be replaced with the new entry, and the cache will be rearranged to maintain binary min-heap ordering.
Arguments
tag
The log tag to be added to the cache.
level
The log level to be associated with the log tag in the cache.