User`s manual

124 digi.com Run-Time Errors
8.3.4 Error Logging Functions
The run-time error logging API consists of the following functions:
8.3.5 Examples of Error Log Use
To try error logging, follow the instructions at the top of the sample programs:
samples\ErrorHandling\Generate_runtime_errors.c
and
samples\ErrorHandling\Display_errorlog.c
errlogGetHeaderInfo Reads error log header and formats output.
errlogGetNthEntry Loads errLogEntry structure with the Nth entry
from the error log buffer. errLogEntry is a pre-allo-
cated global structure.
errlogGetMessage Returns a NULL-terminated string containing the 8 byte
error message in errLogEntry.
errlogFormatEntry Returns a NULL-terminated string containing basic
information in errLogEntry.
errlogFormatRegDump Returns a NULL-terminated string containing the regis-
ter dump in errLogEntry.
errlogFormatStackDump Returns a NULL-terminated string containing the stack
dump in errLogEntry.
errlogReadHeader Reads error log header into the structure
errlogInfo.
ResetErrorLog Resets the exception and restart type counts in the error
log buffer header.