The logging library is commonly used by most esp-idf components and examples. For demonstration of log functionality, check ESP-IDF's examples
directory. The most revelant examples that deal with logging are the following:
system/ota
storage/sd_card
protocols/https_request
inc/esp_log.inc