例: OpenFileLog method

  1. 次のスクリプトは C ドライブの LOG.TXT ファイルを開きます。各アクションとエラーはファイルに追加されます。ファイルには改行して書き込みます。既存の内容に上書きしません。
    Dim currentLog As New NotesLog( "Script log" )
    Call currentLog.OpenFileLog( "c:¥log.txt" )
    '...log some actions and errors...
    Call currentLog.Close
  2. 次のスクリプトは、C ドライブの LOGS ディレクトリの SCRIPTS.TXT ファイルを開きます。ファイルの既存の内容が削除されてから、アクションとエラーがファイルに追加されます。
    Dim currentLog As New NotesLog( "Script log" )
    currentLog.OverwriteFile = True
    Call currentLog.OpenFileLog( "c:¥logs¥scripts.txt" )
    '...log some actions and errors...
    Call currentLog.Close