qh_log_context_destroy()

Updated: April 19, 2023

Destroys a logging context

Synopsis:

#include <qh/log.h>
void qh_log_context_destroy(qh_log_context_t **context)

Arguments:

context
The location of the context. A NULL value has no effect.

Library:

qh

Description:

Destroys a logging context previously created with qh_log_context_create().

Applications and libraries do not normally call this function directly, as it would automatically be handled by the QH_LOG_DEFAULT_CONTEXT_INIT() macro.

Although it is suboptimal, calling this function more than once with the same context pointer or with a NULL context pointer is allowed.

Returns:

EOK on success or a standard errno on failure.