gobj_set_global_trace()

gobj_set_global_trace()#

Sets or resets the global trace level for debugging and logging purposes.

Prototype

int gobj_set_global_trace(
    const char *level,
    BOOL        set
);

Parameters

Key

Type

Description

level

const char *

The trace level to set or reset. If empty, all global trace levels are affected.

set

BOOL

If TRUE, the trace level is set; if FALSE, the trace level is reset.


Return Value

Returns 0 on success, or -1 if the specified trace level is not found.

Notes

If level is empty, all global trace levels are affected. The function ensures that the trace level exists before modifying it.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples