Skip to main content

NotesLog

Properties

NameDescription
LogActionsRead-write. Indicates whether action logging is enabled or not.
LogErrorsRead-write. Indicates whether error logging is enabled or not.
NumActionsRead-only. The number of actions logged so far.
NumErrorsRead-only. The number of errors logged so far.
OverwriteFileRead-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.
ProgramNameRead-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

NameDescription
Close (NotesLog)Closes a log.
LogActionRecords an action in a log.
LogErrorRecords an error in a log.
LogEventSends a Domino® event to the network.
OpenAgentLogOpens the agent log for the current agent.
OpenFileLogStarts logging to a specified disk file. This method returns an error if you call it on a server.
OpenMailLogOpens a new mail memo for logging. The memo is mailed when the log's Close method is called, or when the object is deleted.
OpenNotesLogOpens a specified Domino® database for logging.

Examples

NameDescription
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 property1. This script gets the number of actions logged and places it into the variable count. Here, NumActions returns 2.
Examples: NumErrors property1. 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.