![]() |
ErrorLib 1.0.8-master SHA: 810228da25
|
Logmessages can be printed from everywhere in the code only the header must be included:
A simple logmessage ca be printed by one of the functions:
the function MSG is for compatibility reasons with old versions of the message system. Both function calls do the same.
Some messages are for debug purposes only and should not displayed to anybody. These messages are hidden by default and can be shown only to the user-group developer by activating a special menu item.
One to four data words can be attached to a logmessage. The data is embedded in the logmessage-text with a printf-like syntax. Example of an unsigned integer in a debug-message:
All 32-Bit variables can be attached.
If a logmessage is repeated with no other messages in between, the Message is only stored once. The number of repetitions is stored after another message is sent.
Some messages requires immediate alert to the user, for example if the requested action is failed. These messages are reportet in the error log as ordinary messages, but an additional message box is shown on the connected PC. This messagebox is shown only if the connection to the pc is already established when the alertmessage is fired.