stdout_write()
#
stdout_write()
writes a log message to the standard output with a priority label.
Prototype
int stdout_write(
void *v,
int priority,
const char *bf,
size_t len
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
Unused parameter, included for compatibility with log handler function signatures. |
|
|
Log priority level, determining the severity of the message. |
|
|
Pointer to the log message string. |
|
|
Length of the log message string. |
Return Value
Returns 0 on success, or -1 if the input parameters are invalid.
Notes
The function applies ANSI color codes to differentiate log levels visually.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples