Add an event logger

Configure an Event logger to display the stored values in a table.

Prerequisites

Create a database for the event logger. See Create an embedded database or Create an ODBC database.

To add an event logger
  1. In Project view, right-click Loggers and select New > Event logger.
  2. To store the translations of the localized strings in the database1, in Locales, enter the locale IDs.

    For example, enter en-US.

  3. To add an event configuration and log events of interest:
    1. In Properties, next to Event configurations, select Add.
    2. Under EventConfiguration#, set Event source.

      Source

      Event source value

      Listen subtree value

      Any project object:

      (no value)

      True

      A node/object and all its child objects:

      Dynamic link (parent node/object)

      True

      A specific project object:

      Dynamic link (specific object)

      False

    3. In Event type, select the event of interest type.
      Tip: Consider creating a dedicated event logger for audit event types.
    4. In the central pane, select the variables to log and select Apply.
      Important:

      When selecting a variable to log, a dynamic link is automatically set under Event fields to log. The dynamic link points to the automatically selected corresponding event argument. If the event argument does not represent the data of interest, select a different attribute in the Dynamic link dialog box.

      You can combine multiple event arguments by using dynamic links or converters (for example, a string formatter).

    5. To log only the events generated by user interactions with the application, set Non-interactive sessions excluded to True.
  4. In Database, select the database to store the selected properties.
1 LocalizedText type data, for example alarm event messages