gobj_trace_buffer()

gobj_trace_buffer()#

Logs a buffer of data with a debug-level message. The function formats the buffer as a JSON string and includes it in the log entry.

Prototype

void gobj_trace_buffer(
    hgobj gobj,      
    const char *bf,  
    size_t len,      
    const char *fmt, 
    ...              
);

Parameters

Key

Type

Description

gobj

hgobj

The GObj instance associated with the log entry.

bf

const char *

Pointer to the buffer containing the data to be logged.

len

size_t

Length of the buffer in bytes.

fmt

const char *

Format string for the log message.

...

variadic

Additional arguments for the format string.


Return Value

This function does not return a value.

Notes

The function internally calls trace_vjson() to format and log the buffer data. The buffer content is stored as a JSON string in the log entry.

Prototype

// Not applicable in JS

Prototype

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