APGen Documentation Previous Topic: Log.Filename Next Topic: Log.Path Parent Topic: Log Object    Log Object
Log.Dir
See Also:

The Log.Dir property sets/returns the directory containing the log file.

Syntax

VBScript:

Log.Dir [= strDir]

JScript:

Log.Dir [= strDir];

Object

Log The Log object.

Parameters

strDir A string indicating the new directory for the log file.  A relative or absolute path can be used.

Notes

When setting the Dir property, the strDir parameter may be an absolute path or a relative path.  Relative paths are resolved using the previous Log.Dir value.  The Path property is adjusted to fit the new directory.  The Filename value is not changed.

For a list of valid path formats, see the Output.Path documentation.

When reading the Dir property, the complete directory path is returned.

The default value for Log.Dir is the directory containing the APG script.  If APGen.LogDir is set, it is used as the default Log.Dir for child APG scripts.

Example

This example sets the log file directory.

Log.Dir = "..\logfiles\"

Applies To

Log Object