dax_set_log_file - set the logging options and file descriptor
cc [ flag... ] file... -ldax [ library...] #include <dax.h> dax_status_t dax_set_log_file(dax_context_t *ctx, uint64_t options, int fd);
This function is similar to the dax_set_log() function, but writes messages to the file descriptor fd.
Stops sending messages to syslog if dax_set_log() had been called, and stops sending to the callback function if dax_set_log_callback() 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.
The options parameter supports all the values supported by the dax_set_log() function.
Operation completed successfully
Unrecognized flag in the options or fd < 0
The calling thread did not create ctx
See attributes(5) for descriptions of the following attributes:
|