ZennoLab Assemblies Documentation
SendErrorToLog(String,Boolean) Method
Example 
Type: System.String

An error message for send.

Type: System.Boolean

Set true, if needs show this message in ZennoPoster.

Send an error message to the log of ZennoPoster.
Syntax
void SendErrorToLog( 
   string message,
   bool showInPoster
)

Parameters

message
Type: System.String

An error message for send.

showInPoster
Type: System.Boolean

Set true, if needs show this message in ZennoPoster.

Remarks
The parameter "way" hasn't restrictions, it should use for specify the location where error was detected. This parameter can be empty.
Example
The following example demonstrates using SendErrorToLog method.
try
{
    // get global variable
    IGlobalVariable gv = project.GlobalVariables["MyNamespace", "MyGlobalVariable"];
}
catch (Exception e)
{
    // send error to log
    project.SendErrorToLog(e.Message);
}
try
{
    // get global variable
    $gv = $project->GlobalVariables->get_Item("MyNamespace", "MyGlobalVariable");
}
catch (Exception $e)
{
    // send error to log
    $project->SendErrorToLog($e->Message);
}
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

IZennoPosterProjectModel Interface
IZennoPosterProjectModel Members
Overload List
SendInfoToLog Method
SendWarningToLog Method

Send Feedback