LogFileLocation Enum

Definition

Determines which predefined path the FileLogTraceListener class uses to write its log files.

C#
public enum LogFileLocation
Inheritance
LogFileLocation

Fields

Name Value Description
TempDirectory 0

Use the path of the current system's temporary folder.

LocalUserApplicationDirectory 1

Use the path for a user's application data.

CommonApplicationDirectory 2

Use the path for the application data that is shared among all users.

ExecutableDirectory 3

Use the path for the executable file that started the application.

Custom 4

If the string specified by CustomLocation is not empty, then use it as the path. Otherwise, use the path for a user's application data.

Remarks

Assign one of the LogFileLocation enumeration values to the Location property to specify which predefined path the FileLogTraceListener class uses to write its log files.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 5, 6, 7, 8, 9

See also