qh_log_update_config()

Update the logging configuration based on a configuration string

Synopsis:

#include <qh/log.h>
int qh_log_update_config(const char *config_str)

Arguments:

config_str
The logging configuration string.

Library:

qh

Description:

Logging using QNX helpers is controlled by a configuration string that specifies a combination of the destination flags, the verbosity of a context, and the message-specific flags. For a detailed description of this string, see Controlling QNX helpers logging.

Calling qh_log_update_config() has no effect if the configuration has been locked using a QH_LOG_CONFIG_CTX* environment variable.

Returns:

EOK on success or a standard errno on failure (and errno is set).