LIBPMEMSET(7)

NAME

libpmemset - provides core functionality any persistent application should reasonably have (EXPERIMENTAL)

SYNOPSIS

    #include <libpmemset.h>
    cc ... -lpmemset -lpmem2

DESCRIPTION

libpmemset is still in progress.

DEBUGGING

•   PMEMSET_LOG_LEVEL

Value assigned to the PMEMSET_LOG_LEVEL controls the level of log details presented in the debug version of the library, as follows:

•   0 - This is the default level of logging, when PMEMSET_LOG_LEVEL is not set. No log messages are presented at this level.

•   1 - Additional details on any errors detected are logged, in addition to returning the errno-based errors as usual. The same information may be retrieved using pmemset_errormsg().

•   2 - A trace of basic operations is logged.

•   3 - Enables a very verbose amount of function call tracing in the library.

•   4 - Enables voluminous and fairly obscure tracing information that is likely only useful to the libpmemset developers.

Unless PMEMSET_LOG_FILE is set, debugging output is written to stderr.

•   PMEMSET_LOG_FILE

Specifies the name of a file where all logging information should be written. If PMEMSET_LOG_FILE is not set, output is written to stderr.

SEE ALSO

<https://pmem.io>