asr_slog()

Capture logging information for the recognizer.

Synopsis:

#include "asr/asr.h"
 
int asr_slog(asr_recognizer_hdl_t *mod, int severity, const char *fmt,...) __attribute__((format(printf

Arguments:

mod

The recognizer handle.

severity
The severity of the condition that triggered the message. For more information on severity levels, see slogf() in the QNX C Library Reference. Valid values include:
  • _SLOG_INFO
  • _SLOG_WARN
  • _SLOG_ERROR
  • _SLOG_CRITICAL
fmt

The format string to print to the log buffer. This may include tokens that will be replaced by values of variable arguments appended to the end of the call. The max length of an expanded log message is 1024 characters (this includes all format substitutions and the null terminator).

Library:

libasr

Description:

The asr_slog() function sends debugging information to the appropriate log. Log messages will be written to the log buffer only if their severity is greater than or equal to the specified severity.

Returns:

0 Success.

<0 An error occurred.