Function : Log

LogAddText - Add a text item to a log entry.
----------------------------------------------------------------------------------------------------------

#include <log.h>

STATUS LNVARARGS LogAddText(
WORD LogEntry,
WORD Flags,
char far *ItemName,
HMODULE hModule,
STATUS Message,
char far *FormatString,
<Any 'C' type> optional_var1, ...);

Description :

This function takes a log entry number, a lock entry flag, the name of the item, the handle of the module containing the string table you wish to use, the STATUS code of the message you wish to load from the string table, a string containing a printf style format specifier, and up to 6 format-specifier arguments. Any pointer values passed as one of these arguments must be a far pointer. 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.
Parameters :

Sample Usage :


   sprintf(item_name,"%s", "TextBody");
   if (error_status = LogAddText(log_entry, LOG_LEAVE_LOCKED,
                           item_name,
                           NULLHANDLE, 0,
                           "%s", (char far *) log_entry_body))
      goto Exit;


See Also :

LogCreateEntry
----------------------------------------------------------------------------------------------------------