UtilityTools.AddLogEntry Method

This method adds an entry to the HotDocs Server log file. Although this method is frequently used for error messages, you could use it to record any kind of information in the HotDocs Server log file. For example, you could add a log entry when a user first logs on to your host application.

Syntax

public static void AddLogEntry(int errCode, string mesg)

Parameters Description
errCode A numeric code identifying the type of log entry. For example, you could assign a different number to each type of error your application handles. Then, when an error occurs, you can use that number when you record the error in your HotDocs Server log file.
mesg The text that will be written to the log. Together with the log code, the message can help you later troubleshoot problems that occur during the execution of your host application.