gobj_get_log_data()
#
Retrieves a JSON object containing log statistics, including counts of different log levels such as debug, info, warning, error, critical, and alert.
Prototype
json_t *gobj_get_log_data(void);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
This function does not take any parameters. |
Return Value
A JSON object containing log statistics with keys: ‘debug’, ‘info’, ‘warning’, ‘error’, ‘critical’, and ‘alert’, each holding the respective count.
Notes
The returned JSON object must be managed by the caller, ensuring proper memory deallocation when no longer needed.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples