libnvme\_set\_logging\_file(9) libnvme API manual libnvme\_set\_logging\_file(9)

# [NAME](#NAME)

libnvme\_set\_logging\_file - Set the log output file for the global context

# [SYNOPSIS](#SYNOPSIS)

**void libnvme\_set\_logging\_file** **(struct libnvme\_global\_ctx \*ctx ,** **FILE \*fp );**

# [ARGUMENTS](#ARGUMENTS)

[ctx](#ctx)

struct libnvme\_global\_ctx object

[fp](#fp)

File stream to write log messages to, or NULL to use stderr

# [DESCRIPTION](#DESCRIPTION)

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

libnvme\_set\_logging\_file October 2026

---

Document: libnvme_set_logging_file-libnvme3(2) from nvme-cli 3.2-r0 (Chainguard OS)
Source: https://github.com/linux-nvme/nvme-cli
