|
Events, event logging, and event properties |
|
The combination of logging and monitoring events in wwlog_api and wwlog_api_admin API packages enables an end-user with appropriate privileges to analyze events that have occurred in their Oracle Portal installation. This topic presents the following subjects: Events are Oracle Portal processes, or actions that can be performed on database objects. Descriptive information about an event can be captured, and both this and discretionary information can be stored in Oracle Portal logging tables. If the elapsed time of an event is automatically determined by an event handling API, it is automatically logged. Events can be logged with starting and stopping calls, they can also be logged with a single call. In this case, the caller of the API must calculate the elapsed time. Sample loggable objects and actions
Characteristics of events and event logging Before working with event logging methods, you should be familiar with this information:
Providers determine which events are logged into the Oracle Portal logging tables. A logging call for an event follows this sequence:
Example: If the only record in the wwlog_registry$ table contains these event property names and values,
then only logging requests for the Research&Development domain, Expenses sub-domain, and the VIEW action for any folder in the domain, by any user, and with any browser in any language, are recorded in the logging tables. Notes:
The key columns in the wwlog_registry table are provided for recording identifying values that help to relate the logging record to other data. Example: When logging events about a folder in a content area, key_1 could hold the Content Area ID and key_2 could hold the folder ID. Notes:
In Oracle Portal, the logging methods can be called from PL/SQL packages only. The PL/SQL implementation of the Logging API is installed in the wwlog_api and wwlog_api_admin packages. Events have the properties shown in the following table. Some of these properties must be supplied by the caller of the API, and others are automatically gathered by the API itself. Event properties exactly correspond to the record fields in the logging tables. |
|||||||||||||||||||||||||||||||||||||
|
Note |
|
Event properties are loggable aspects of an event. Event property names correspond to field names in the logging table. |
|
The PL/SQL API Reference is part of the Portal Developer Kit on Portal Studio |