pmem_log_set_threshold - Man Page

set the logging threshold value

Synopsis

    #include <libpmem.h>

    enum pmem_log_level {
        PMEM_LOG_LEVEL_HARK,
        PMEM_LOG_LEVEL_FATAL,
        PMEM_LOG_LEVEL_ERROR,
        PMEM_LOG_LEVEL_WARNING,
        PMEM_LOG_LEVEL_NOTICE,
        PMEM_LOG_LEVEL_INFO,
        PMEM_LOG_LEVEL_DEBUG
    };

    enum pmem_log_threshold {
        PMEM_LOG_THRESHOLD,
        PMEM_LOG_THRESHOLD_AUX
    };

    int pmem_log_set_threshold(enum pmem_log_threshold threshold,
        enum pmem_log_level value);

Description

pmem_log_set_threshold() sets the logging threshold value.

Available thresholds are:

Available threshold values are defined by enum pmem_log_level. They are listed in descending order of severity:

Return Value

pmem_log_set_threshold() function returns 0 on success or returns a non-zero value and sets errno on failure. On failure, the threshold value remains unchanged.

Errors

pmem_log_set_threshold() can set the following errno values on fail:

See Also

pmem_log_get_threshold(3), pmem_log_set_function(3).

Referenced By

libpmem(7), pmem_log_get_threshold(3), pmem_log_set_function(3).

2024-07-18 PMDK - PMDK Programmer's Manual