Go to main content

man pages section 3: DAX Library Functions

Exit Print View

Updated: Friday, August 13, 2021
 
 

dax_set_log_file (3DAX)

Name

dax_set_log_file - set the logging options and file descriptor

Synopsis

cc [ flag... ] file... -ldax [ library...]

#include <dax.h>

dax_status_t
dax_set_log_file(dax_context_t *ctx, uint64_t options, int fd);

Description

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.

Return Values

DAX_SUCCESS

Operation completed successfully

DAX_EINVAL

Unrecognized flag in the options or fd < 0

DAX_ETHREAD

The calling thread did not create ctx

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/library
Interface Stability
Committed

See Also

dax_set_log(3DAX), dax_set_log_callback(3DAX)