| ZennoLab.InterfacesLibrary Assembly > ZennoLab.InterfacesLibrary.ProjectModel Namespace > IZennoPosterProjectModel Interface > SendErrorToLog Method : SendErrorToLog(String,String,Boolean) Method |
An error "way" for send. The parameter "way" can be line in code, action ID or module.
An error message for send.
An error "way" for send. The parameter "way" can be line in code, action ID or module.
Set true, if needs show this message in ZennoPoster.
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"); }
Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.