Function : Log

LogCompleteEntry - Allow writing the log entry to disk.
----------------------------------------------------------------------------------------------------------

#include <log.h>

STATUS LNPUBLIC LogCompleteEntry(
WORD LogEntry);

Description :

Given the number of a log entry, this function adds an item called FinishTime to the entry and marks the entry "complete", "modified", and "not locked", allowing the entry to be written to disk and deallocated. Log entries are written to disk at set intervals or when a client or server component attempts to read from the log (to ensure that the request obtains the most up-to-date information). In addition, if any log messages have not been written to disk when the API program terminates, these messages are written at that time.

Parameters :

Sample Usage :

/* Automatically fill FinishTime item/field  and recycle the log */
/* entry(unlocks the object)                                     */

if (error_status = LogCompleteEntry(log_entry))
  goto Exit;
else
  cleanup_state -= COMPLETE_LOG_ENTRY;


See Also :

LogCloseEntry
----------------------------------------------------------------------------------------------------------