gobj_log_del_handler()

gobj_log_del_handler()#

Removes a registered log handler by its name. If the handler name is empty, all handlers are removed.

Prototype

int gobj_log_del_handler(
    const char *handler_name
);

Parameters

Key

Type

Description

handler_name

const char *

The name of the log handler to remove. If empty, all handlers are removed.


Return Value

Returns 0 if the handler was successfully removed, or -1 if the handler was not found.

Notes

If a handler is removed, its associated resources are freed, and if it has a close function, it is called.

Prototype

// Not applicable in JS

Prototype

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