Logfile
Specifes the file path to the log file where the provider records its activities, such as authentication, query execution, and connection details.
Data Type
string
Default Value
""
Remarks
This property specifies the location and name of the log file where the driver records its operations, including authentication events, query execution, and connection details. If the specified file does not exist, the driver creates it. Ensure that the user or the service running the driver has write access to the specified path or file. Without sufficient permissions, the log file is not created. Sensitive information from the connection string, such as passwords and tokens, is automatically masked in the logs. However, sensitive information present in the data itself may not be masked.
If you specify a relative path for Logfile, and if the Location property is set, that directory is used as the base path for the log file.
Additional properties allow you to customize logging behavior:
- Use Verbosity to control the level of detail of the log file.
- Manage log file size with MaxLogFileSize and control the number of retained log files with MaxLogFileCount.
- Filter specific log modules by adjusting the LogModules property.