libnvme_set_logging_file(9) libnvme API manual libnvme_set_logging_file(9)

libnvme_set_logging_file - Set the log output file for the global context

void libnvme_set_logging_file (struct libnvme_global_ctx *ctx , FILE *fp );

struct libnvme_global_ctx object
File stream to write log messages to, or NULL to use stderr

Sets the file descriptor used for log output. Passing NULL reverts to the default (stderr).

libnvme_set_logging_file September 2026