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 |
---|---|---|
|
|
The GObj instance associated with the log entry. |
|
|
Pointer to the buffer containing the data to be logged. |
|
|
Length of the buffer in bytes. |
|
|
Format string for the log message. |
|
|
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