gobj_trace_json()

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

gobj

hgobj

The gobj instance associated with the log entry.

jn

json_t *

The JSON object to be logged. This parameter is not owned by the function.

fmt

const char *

A format string for the log message.

...

variadic

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