FileLogTraceListener::Location Property
Gets or sets location for the log files.
Assembly: Microsoft.VisualBasic (in Microsoft.VisualBasic.dll)
public: property LogFileLocation Location { LogFileLocation get(); void set(LogFileLocation value); }
Property Value
Type: Microsoft.VisualBasic.Logging::LogFileLocationLogFileLocation, which is the location for the log file. The default value is LocalUserApplicationDirectory.
Use the Location property to set the log path to one of the predefined paths, determined by the LogFileLocation enumeration values.
Location value | Path |
|---|---|
The path for the application data that is shared among all users, with the format: BasePath\CompanyName\ProductName\ProductVersion A typical value for BasePath is: C:\Documents and Settings\All Users\Application Data The values of CompanyName, ProductName, and ProductVersion come from the assembly. | |
The path for the executable file that started the application. | |
The path for the application data of a user, with the format: BasePath\CompanyName\ProductName\ProductVersion A typical value for BasePath is: C:\Documents and Settings\username\Application Data The values of CompanyName, ProductName, and ProductVersion come form the assembly. | |
The path of the current system's temporary folder. | |
If the string specified by CustomLocation is not empty, then use it as the path; otherwise use the path for the application data of a user. |
Available since 2.0