dax_set_log - set logging options
cc [ flag... ] file... -ldax [ library...] #include <dax.h> dax_status_t dax_set_log(dax_context_t *ctx, uint64_t options);
This function sets options for logging messages in the libdax functions that use ctx.
The following are the values for the options parameter, and they can be logically OR'd together:
Print error messages
Print warning messages. A warning message does not necessarily mean that there is an error.
Print arguments on entry to a libdax function
Print results on return from a libdax function
Print performance data and advice
Print additional information during execution of a libdax function
Enable all logging options
Sends messages enabled by options to the syslog(3C) log at the user.debug priority level. Stops sending messages to the file specified by dax_set_log_file() if it had been called, and stops sending messages to the callback handler specified by dax_set_log_callback() if it had been called.
Continues to send messages enabled by DAX_LOG_OPTIONS to the target defined by the DAX_LOG_OPTIONS and DAX_LOG_FD environment variables at dax_thread_init() time.
Disables an option if it is not specified either in options or in DAX_DEBUG_OPTIONS.
Log messages only serve as an aid to debug problems. The format of all log messages is not defined and can change in future versions.
If the function returns an error, does not change log options.
Operation completed successfully
Unrecognized flag in the options
The calling thread did not create ctx
The DAX_LOG_ERROR option prints detailed diagnostics for DAX_EINVAL errors.
See attributes(7) for descriptions of the following attributes: