gobj_log_alert()

gobj_log_alert()#

Logs an alert message with priority LOG_ALERT. The message is formatted using a variable argument list and processed by the logging system.

Prototype

void gobj_log_alert(
    hgobj gobj,
    log_opt_t opt,
    ...
);

Parameters

Key

Type

Description

gobj

hgobj

The object generating the log message.

opt

log_opt_t

Logging options that control behavior such as stack tracing or process termination.

...

variadic

Format string followed by arguments for message formatting.


Return Value

This function does not return a value.

Notes

The function increments the global alert log counter and processes the message through registered log handlers. If LOG_OPT_TRACE_STACK is set, a stack trace is included in the log output.

Prototype

// Not applicable in JS

Prototype

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