Oracle9iAS Portal Developer Kit

add_log_event function

Contained in package wwlog_api_admin.

Call this function to add a logging domain, subdomain, and action as events in the wwlog_event$ table.

Note: These values are used to provide lists of values for users who are populating the wwlog_registry$ table via the Oracle Portal UI, i.e. functions available under the Monitor tab on the Oracle Portal Home page.

function add_log_event

(

p_domain in varchar2,

p_subdomain in varchar2,

p_action in varchar2

)

return number;

Users must have at least the Any Log Edit privilege to add a log event.

Version: Oracle Portal 3.0.6.6.5 or later

Parameters:

 p_domain

The name of the domain of the object for which an event is being logged.

Datatype: in varchar2

p_subdomain

The name of the subdomain of the object for which an event is being logged.

Datatype: in varchar2

p_action

The name of the action being logged.

Datatype: in varchar2

Returns:

This function returns the ID number of the logging event.

Exceptions:

This function raises no user-defined exceptions.

Example:

p_id := wwlog_api_admin.add_log_event

(

p_domain => 'Research&Development',

p_subdomain => 'Expenses',

p_action => 'view'

);

Related topics

The PL/SQL API Reference is part of the Portal Developer Kit on Portal Studio