qh_log_check()

Updated: April 19, 2023

Check whether a message with the given log information structure is logged

Synopsis:

#include <qh/log.h>
bool qh_log_check(const qh_log_info_t *log_info)

Arguments:

log_info
The log information structure of the log message to check.

Library:

qh

Description:

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:

Returns true if the message would be logged, and false otherwise.