LogFileLocation Enum
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines which predefined path the FileLogTraceListener class uses to write its log files.
public enum class LogFileLocation
public enum LogFileLocation
type LogFileLocation =
Public Enum LogFileLocation
- Inheritance
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. |
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.
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 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: