contentsconceptssyntaxlibrariessampleserrorsindex
Full text search
function   log-message    
  Related Syntax     Other Library Functions  

Library: #builtin
Include: builtins.xin
Declaration

  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


Purpose

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
 
----  

Top [CONTENTS] [CONCEPTS] [SYNTAX] [LIBRARIES] [SAMPLES] [ERRORS] [INDEX]

Generated: April 21, 1999 at 2:01:10 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © OmniMark Technologies Corporation, 1988-1999.