NotesLog
Properties
| Name | Description |
|---|---|
| LogActions | Read-write. Indicates whether action logging is enabled or not. |
| LogErrors | Read-write. Indicates whether error logging is enabled or not. |
| NumActions | Read-only. The number of actions logged so far. |
| NumErrors | Read-only. The number of errors logged so far. |
| OverwriteFile | Read-write. For a log that records to a file, indicates whether the log should write over the existing file or append to it. This property has no effect… |
| Parent (NotesLog) | Read-only. The session that contains a NotesLog object. |
| ProgramName | Read-write. The name that identifies the script whose actions and errors you're logging. The name is the same as the name specified with New or CreateLog. |
Methods
| Name | Description |
|---|---|
| Close (NotesLog) | Closes a log. |
| LogAction | Records an action in a log. |
| LogError | Records an error in a log. |
| LogEvent | Sends a Domino® event to the network. |
| OpenAgentLog | Opens the agent log for the current agent. |
| OpenFileLog | Starts logging to a specified disk file. This method returns an error if you call it on a server. |
| OpenMailLog | Opens a new mail memo for logging. The memo is mailed when the log's Close method is called, or when the object is deleted. |
| OpenNotesLog | Opens a specified Domino® database for logging. |
Examples
| Name | Description |
|---|---|
| Examples: Close method (NotesLog) | This script opens and then closes a mail log. When the Close method is called, the log gets mailed. |
| Examples: NumActions property | 1. This script gets the number of actions logged and places it into the variable count. Here, NumActions returns 2. |
| Examples: NumErrors property | 1. This script gets the number of errors logged and places it into the variable count. Here, NumErrors returns 3. |
| Examples: Parent property (NotesLog) | This Visual Basic code displays the parent user name of a NotesLog object. |