Updated: October 28, 2024 |
Check whether a message with the given log information structure is logged
#include <qh/log.h>
bool qh_log_check(const qh_log_info_t *log_info)
Given a message's log information structure, this function determines if it is logged when it is used in a logging call. This function is useful when a message is expensive to build because the caller can determine whether to build a message based on whether it would be logged. To perform this same check based on the severity only, use QH_LOG_CHECK().
Returns true if the message would be logged, and false otherwise.