Diagnostic program trace

Diagnostic Program Tracing is the process of finding out what is going on as a program executes, without interfering with the normal operation of the program. To achieve this, PAH provides:

  1. Logging trace messages

    PAH has a built-in mechanism to log trace messages. The application will have a centralized logging mechanism in place, which will facilitate the logging of trace messages. The application can define one or more loggers, and the trace data will be written to each of the configured loggers. By default, these built-in loggers will be available within the framework:

    • Text file logger

      The trace information will be maintained in a trace log. Users can configure the path to the trace log.

    • Windows event logger

      The trace information is maintained in the windows event log. Users have the option to turn on logging on either or both loggers.

  2. Classification of trace messages

    The program should have a means by which trace messages can be classified into meaningful groups. This enables the users to easily manage the group of functions they want to trace, rather than just tracing all messages. Messages being logged to the trace can be classified as Errors, Warnings, System Settings, Application Configuration Settings, Execution Path, Database Calls, and Data.