1.2.10.2 The LOG statement

The LOG statement lets you add an arbitrary message to the MNC system's event log. This may be used to signal events which shall not be treated as a fault, but are to be recorded anyhow.

log-statement.gif

Messages generated by the LOG statement by default are of the priority INFO. If the first character of the message to send is 2 or 3, the first character is removed from the message and the priority id increased to FAULT (2), ALARM (3) or WARNING (4) respectively.

Example

    LOG "This is an informational message"
    LOG "3This is an ALARM message !"

The example above adds two messages to the log. The message This is an informational message is added with priority INFO, the message This is an ALARM message! is added with ALARM priority.

Please note: although the priority WARNING is represented by the number 4, it's logical priority is between INFORMATIONAL and FAULT. This is because warnings have been added to the software lately and there had do be defined an unused number for the new priority.