Types of exception logs
Once an exception is caught by a handler, a centralized logging mechanism logs the details pertaining to the exception, along with the date and time of its occurrence. This information is maintained in an exception log. An exception log can be configured to log exceptions to one or more log sources, such as the Windows event log, a text file, an XML file, and the database. PAH maintains two types of exception logs:
- Default log
The default log acts as a central repository for all exceptions. All exceptions are logged to the application’s default log. This log is maintained in a standard text file. This setting cannot be modified, but the user can choose to add more default log sources through the XML configuration file. This means that the default log can be configured to write exceptions to the text file and the Windows event log.
- Crash log
The crash log is used to log exceptions that have a high level of impact. This log captures all exceptions that require immediate attention. By default, this log is configured to be maintained in the Windows event log. The log can be reconfigured through the XML file to log to any source as required.