Log library is commonly used by most of esp-idf components and examples. For demonstration of log functionality check examples
folder of espressif/esp-idf repository, that among others, contains the following examples:
system/ota
storage/sd_card
protocols/https_request