LOG_error
2-188
C Interface
Syntax
LOG_error(format, arg0);
Parameters
String
format;
/* printf-style format string */
Arg
arg0;
/* copied to second word of log record */
Return Value
Void
Reentrant
yes
Description
LOG_error writes a program-supplied error message to the system log,
which is defined in the default configuration by the LOG_system object.
LOG_error is not affected by any TRC bits; an error event is always
written to the system log.
The format argument can contain any of the conversion characters
supported for LOG_printf. See LOG_printf for details.
Example
Void UTL_doError(String s, Int errno)
{
LOG_error("SYS_error called: error id = 0x%x", errno);
LOG_error("SYS_error called: string = '%s'", s);
}
See Also
LOG_event
LOG_message
LOG_printf
TRC_disable
TRC_enable
LOG_error
Write an error message to the system log