|        | |||||
|  | |||||
| function | log-message | ||||
| Related Syntax | Other Library Functions | 
| Library: #builtin Include: builtins.xin | 
  define external function log-message
              value stream message-text
        class value stream class-value optional initial {""}
     severity value counter severity-value optional initial {0}
     as log_message in function-library #builtin
This function is meant to be used as a general mechanism for error and status logging.
log-message delivers the error or status message passed to it to whatever logging mechanism is being used by the OmniMark run-time. In OmniMark CI or LE, this can be simply writing the message to the "-log" stream. In OmniMark SI, the message may be stamped with additional information, such as the current time and machine/process identity, and sent to another machine or filed in a database. 
log-message is useful in batch environments, both because it gives access to the "-log" stream, and because it is invoked in a uniform manner in a server environment. It is useful in server environments because it provides a consistent interface to what can be a variety of message processing systems.
Arguments:
| Related Syntax no-default-io | Other Library Functions log-message | 
| ---- |