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

The Log.Filename property sets/returns the filename of the log file.

Syntax

VBScript:

Log.Filename [= strFilename]

JScript:

Log.Filename [= strFilename];

Object

Log The Log object.

Parameters

strFilename A string indicating the new filename of the log file.  A relative or absolute path can be used.

Notes

This property is similar to the Output.Filename property, except that it applies to a log file instead of an output file.  See the Output.Path topic for information on path syntax.

The default log file path is the APG script path, with a ".log" extension.  The default log directory can be set for all sibling APG scripts using APGen.LogDir.  If the default log directory is changed, the default log filename will still be the filename of the APG script, with file extension ".log".

Example

This example changes the name of the log file to "site.log".

Log.Filename = "site.log"

Applies To

Log Object