Function : AddIn

AddInLogErrorText - Format and write error message to the log file.
----------------------------------------------------------------------------------------------------------

#include <addin.h>

void LNPUBLIC AddInLogErrorText(
char far *String,
STATUS AdditionalErrorCode,
char far *Arg);

Description :

AddInLogErrorText formats an error message, displays it on the standard output, and appends the message as new line to the "Events" field in a Miscellaneous Events document in the Domino server or Notes client Log. The generated message has the form:

<DATE> <TIME> <Primary status message>: <Secondary status message>

The first parameter, String, is the primary status message. The second parameter, AdditionalErrorCode, may be a string resource ID, or it may be the STATUS returned from a C API function.

The String parameter may contain a printf-type format specifier. If it does, the last parameter, Arg, must point to a printf-type argument that resolves the format specifier. Only one format specifier argument is supported in this function. Use AddInLogMessageText if more than one format specifier argument is needed. The print format specifiers supported by Domino are described in the Tech Note "Domino Print Format Specifiers". Tech Notes are listed in the view, Reference Tools/Tech Notes.

AddInLogErrorText formats the Primary status message using String and, optionally, Arg. It formats the Secondary status message using the Domino error message associated with the second parameter, AdditionalErrorCode.

AddInLogErrorText may be called from a NotesMain, main, or AddInMain API program.

Parameters :

See Also :

AddInFormatErrorText
----------------------------------------------------------------------------------------------------------