User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

write_to_logs [2019/01/09 10:28] (current)
akuzmuk created
Line 1: Line 1:
 +
 +===== Writing to communication log =====
 +
 +==== ERROR(message) ====
 +
 +The function adds the **message** with the ERROR level to communication log (**Maintenance -> WebHMI Log**). Function returns 1 if any error occurred and 0 on success.
 +
 +==== INFO(message) ====
 +
 +The function adds the **message** with the INFO level to communication log (**Maintenance -> WebHMI Log**). Function returns 1 if any error occurred and 0 on success.
 +
 +==== DEBUG(message) ====
 +
 +The function adds the **message** with the DEBUG level to communication log (**Maintenance -> WebHMI Log**). Function returns 1 if any error occurred and 0 on success.
 +
 +==== TRACE(message) ====
 +
 +The function adds the **message** with the TRACE level to communication log (**Maintenance -> WebHMI Log**). Function returns 1 if any error occurred and 0 on success.
 +
 +===== Writing to message log =====
 +
 +==== AddInfoMessage(message,​ userId)====
 +The AddInfoMessage function adds the message **message** with the Info level to the Messages log. **userId** is the user ID on whose behalf the message should be added. Returns 1 if an error occurred and 0 if successful.
 +
 +**AddWarningMessage** and **AddAlertMessage** - are full analogs of AddInfoMessage,​ writing to Warning and Alert message levels respectively. ​
  

Page Tools