这是一段建立log文件的代码,可是如何用啊

这是一段建立log文件的代码,可是怎么用啊?

'
'Module basLogging (32-bit functionality only)
'
'The routines in this module are used for logging actions,
'warnings, notes and errors in an application removal
'logfile.  This logfile will be used by the application
'removal utility (ST4UNST.EXE) in the event that the user
'decides to remove the installed application (via a Program
'Manager icon under Windows NT or the Add/Remove Programs
'control panel applet under Windows 95).
'
'The functions are based on transaction-like "actions".
'Whenever the setup program starts to process a new action
'(an action is anything which the application removal
'utility must undo), the function NewAction() must be
'called with the appropriate parameters for that action
'(search for NewAction in this project to see how the
'correct parameters for various actions are formed).
'When the action has been successfully completed, the
'function CommitAction() is called, or, if the
'action was not successfully completed, AbortAction()
'must be called.  If CommitAction() is called, then the
'action is logged at that point, and the application
'removal utility will undo that action (example, delete
'a file which was copied by setup).
'
'Actions may be nested (for instance, a file copy
'action may have a nested direction creation action).
'Any errors, warnings or notes logged will note in
'the logfile the pending action (if any).  Even if
'an error is logged, the pending action must either
'be committed or canceled.  See comments for each
'function below for more specifics.
'模块baslogging(32位的功能只)
'
'这个模块中的程序用于测井的行动,
'
'警告,在应用中去除的笔记和错误
'
'日志文件?该文件将被使用的应用程序
'
'清除工具(st4unst。exe)的事件,用户
'
'决定要删除已安装的应用程序(通过一个程序
'
'管理器图标在Windows NT或添加 / 删除程序
'
'控制面板小程序在Windows 95下)。
'
'该功能是基于交易的“行动”。
'
'当安装程序开始处理一个新的动作
'
'(一个动作是任何应用程序删除
'
'它必须撤销),功能newaction()必须
'
'为行动的适当的参数
'
'(寻找新的行动在这个项目怎么看
'
'各种操作参数的正确形成)。
'
'当行动已顺利完成,该
'
'功能commitaction()叫,或者,如果
'
'行动没有成功完成,abortaction()
'
'必须调用。如果commitaction()叫,然后
'
'动作被记录在这一点上,与应用
'
'清除工具将撤消行动(例如,删除
'
'这是复制安装文件)。
'
'的行动可能是嵌套的(例如,一个文件的副本
'
'行动可能有一个嵌套的方向创造行动)。
'
'任何错误,警告或笔记记录会注意
'
'日志文件的挂起的作用(如果有的话)。即使
'
'记录错误,悬而未决的行动必须
'
'提交或取消。看评论,每个

下面的函数为更多的细节?

'Application removal is only supported for 32-bit projects
#If Win32 And LOGGING Then

'Set this constant to FALSE if you do not want warnings to appear
'in the logfile
Global Const fLOG_WARNINGS = True