gobj_trace_json()
#
Logs a JSON object with an associated message for debugging purposes. The function formats the log entry with metadata such as timestamp, gobj attributes, and system memory usage.
Prototype
void gobj_trace_json(
hgobj gobj,
json_t *jn,
const char *fmt,
...
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The gobj instance associated with the log entry. |
|
|
The JSON object to be logged. This parameter is not owned by the function. |
|
|
A format string for the log message. |
|
|
Additional arguments for formatting the log message. |
Return Value
This function does not return a value.
Notes
If the gobj has the TRACE_GBUFFERS
trace level enabled, the function will also log the contents of the associated gbuffer_t
.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples