JAVA/CORBA CLASSES


openNotesLog method
Example

Opens a specified Lotus Notes/Domino database for logging.

Defined in

Log

Syntax

public void openNotesLog(String server, String database)
   throws NotesException

Parameters

String server


String database
Usage

One document is created in the database for each error or action that you log. Each document contains the following items:
ItemContents
Form"Log Entry"
A$PROGNAMEThe ProgramName property
A$LOGTIMEThe date and time that the error or action is logged
A$USERThe user at the time the error or action is logged
A$LOGTYPE"Error" or "Action"
A$ACTIONA description of the action (actions only)
A$ERRCODEThe error code (errors only)
A$ERRMSGA description of the error (errors only)

The StdR4AgentLog template

The StdR4AgentLog template (ALOG4.NTF) is designed to display the action and error documents that Log creates. If the database you specify inherits its design from this template, you can use the database main view to see each of the items listed above. Several agents can log to the same server and database; the database categorizes each action and error according to the A$PROGNAME item.

Opening a database

An agent that attempts to open a database to which it does not have access returns an error. You need at least Reader access to a database to open it.

Logging actions and errors

For information on how actions and errors get logged to a database log, see the logAction and logError methods.

Language cross-reference

OpenNotesLog method in LotusScript NotesLog class

Example
See Also