---
name: "libnvme_set_logging_file-libnvme3"
section: "2"
platform: "linux"
package: "nvme-cli"
version: "3.2-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/libnvme_set_logging_file-libnvme3"
---

# libnvme\_set\_logging\_file-libnvme3(2)

Set the log output file for the global context

## NAME

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

## SYNOPSIS

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

## ARGUMENTS

- ctx

  struct libnvme\_global\_ctx object

- fp

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

## DESCRIPTION

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