LogMessages Method (ERROR)


10.1, PLBCMP GUI Only

 

The LogMessages method invokes error logging. This method uses the following format:

 

 

[label]

{object}.LogMessages

[GIVING {return}] USING [*FILENAME=]{filename}

 

 

 

[*FLAGS=]{flags}]

 

Where:

label

Optional. A Program Execution Label.

object

Required. An ERROR object that has been previously declared.

return

Optional. A Numeric Variable that returns zero when the method executes successfully. A non-zero value is returned when the method fails.

filename

Required. A Character String Variable or string literal that specifies the file name to be used for error logging.

flags

Optional. A Numeric Variable that specifies a bit mask value that controls the behaviors of this method.

Flags Affected: EOS, OVER, ZERO

Note the following:

  1. The ZERO flag is set if the {return} value is zero.

  2. The OVER flag is set if the returned value overflows the {return} Numeric Variable.

  3. The EOS flag is always set to FALSE.

  4. The {return} values are described as follows:

  5.  

    Value

    Behavior

    0

    The method executed successfully.

    1

    The method failed because there was no {filename} specified.

    2

    The method failed because there was an error resetting the {filename}.

     

  6. The {flags} bit mask values are described as follows:

  7.  

    Value

    Keyword

    Behavior

    0x1

    ERRLOGON

    Turn on all logging and log all errors that have not been logged.

    0x2

    ERRLOGOFF

    Turn logging off.

    0x4

    ERRLOGRESET

    Reset the log file to a file size of zero bytes.

 

 

See Also: Method Syntax, ERROR Methods

 



PL/B Language Reference GetTime Method (ERROR) SetErrorStackSize Method (ERROR)