libpmemset - provides core functionality any persistent application should reasonably have (EXPERIMENTAL)
#include <libpmemset.h> cc ... -lpmemset -lpmem2
libpmemset is still in progress.
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.
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.
The contents of this web site and the associated GitHub repositories are BSD-licensed open source.