例: Close method (NotesLog - LotusScript®)

次のスクリプトはメールログを開いてから閉じます。Close メソッドが呼び出されると、ログはメール送信されます。

Dim currentLog As New NotesLog( "Log closing" )
Call currentLog.OpenMailLog( "Jimmy Ho", "Here's your log" )
'...log some errors and actions...
Call currentLog.Close   ' mail memo gets sent to Jimmy Ho now