pips_enable_debug()

Updated: April 19, 2023

Enable or disable debug logging by PiPS

Synopsis:

#include <pips/pips.h>
int pips_enable_debug(const bool enable)

Arguments:

enable
A flag indicating whether to enable or disable debug logging

Library:

pips-client

Description:

This function enables or disables logging by the PiPS framework to the debug logs.

Only debugging information is written to these logs, which are separate from the general system log. Debug messages provide additional information to help troubleshoot problems. All messages in this buffer are prefixed with the thread ID and name of the function that wrote the message.

Returns:

0
Debug logging was enabled or disabled successfully
-1
An error occurred