LogError (NotesLog - LotusScript®)

Records an error in a log.

Defined in

NotesLog

Syntax

Call notesLog .LogError( code% , description$ )

Parameters

code%

Integer. A number indicating which error occurred.

description$

String. A description of the error that occurred, as you want it to appear in the log.

Usage

The behavior of this method depends upon the type of log you've opened.

  • If you opened a Domino® database using OpenNotesLog, this method creates a new document in the database. The A$ERRCODE item in the document contains the code% and the A$ERRMSG item contains the description$. For more information about the items that the document contains, see the OpenNotesLog method.
  • If you opened a mail memo using OpenMailLog, this method adds code% and description$ to the Body item of the memo, along with the current date and time.
  • If you opened a file using OpenFileLog, this method adds code% and description$ to the next line of the file, along with the log's ProgramName and the current date and time.

Example