pips_set_verbosity()

Updated: April 19, 2023

Set the PiPS verbosity for the general system log

Synopsis:

#include <pips/pips.h>
int pips_set_verbosity(uint8_t const verbosity)

Arguments:

verbosity
The verbosity level for the general system log. PiPS writes only those messages with a severity level at or worse than the specified level. The lowest level allowed is 1, meaning ERROR and CRITICAL messages are always logged.

Library:

pips-client

Description:

This function sets the verbosity level at which the PiPS framework writes messages to the general system log. The PiPS framework manages three buffers of system logs: the general log, debug logs, and system trace; the debug log and system trace buffers are controlled by pips_enable_debug() and pips_enable_trace().

Returns:

0
The general system log verbosity was set successfully
-1
An error occurred