Logging
This element controls log events. Logs are text files written at the given location that record events for information, such as a data update, as well as reporting any fatal errors. While it is not mandatory to include this element it is the most useful tool there is for diagnosing a problem.
Attributes | Madatory | Description |
---|---|---|
enabled | No | A boolean value that controls if the log element is enabled or not. If 'false' the rest of the log element is ignored. This is mostly useful for debugging. Defaults to 'true'. |
logFile | Yes | The location of the log file. |
logLevel | No | Values include Debug|Info|Warn|Fatal and control the level of information logged. Defaults to Fatal if not specified. |
If it seems that the log is not being written check that the App Pool has appropriate permissions to modify the file and that the filepath is not read only.
To disable logging, simply remove the log element.