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

An error message for send.

Type: System.String

An error "way" for send. The parameter "way" can be line in code, action ID or module.

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,
   string way,
   bool showInPoster
)

Parameters

message
Type: System.String

An error message for send.

way
Type: System.String

An error "way" for send. The parameter "way" can be line in code, action ID or module.

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, "first action OwnCode C#");
}
try
{
    // get global variable
    $gv = $project->GlobalVariables->get_Item("MyNamespace", "MyGlobalVariable");
}
catch (Exception $e)
{
    // send error to log
    $project->SendErrorToLog($e->Message, "first action OwnCode PHP");
}
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