|
APGen Object |
|
See Also: |
The LogDir property sets/returns the default log file directory for child APG scripts.
VBScript:
JScript:
| oAPGen | An APGen object. |
| strPath | The path of the default log file directory. |
Child scripts (scripts run or opened by this APGen object) will use this value for Log.Dir. This gives developers an easy way to change the log file location for multiple scripts.
The default value for the LogDir property is empty (""). If LogDir is empty, then the default Log.Dir value for child scripts is the directory that contains the script.
This VBScript line sets the log file directory to an "APGen" subdirectory of the Windows NT LogFiles directory. IIS puts its log files in the directory "LogFiles\W3svc#". This code allows you to keep all your log files together. Note that the directory "LogFiles\APGen" must exist for logging to work after this line is executed.
oAPGen.LogDir = "C:\WinNT\System32\LogFiles\APGen"