The SetTraceCallback method registers a user-defined Perl subroutine that processes SiteMinder trace messages. If multiple subroutines are registered, SiteMinder calls the most recently registered subroutine.
Syntax
The SetTraceCallback method has the following format:
Netegrity::AgentAPI‑>SetTraceCallback(subref[, mode][, delim] [, configFileName])
Parameters
The SetTraceCallback method accepts the following parameters:
subref (string)
Specifies the name of the Perl subroutine or a reference to the subroutine:
Example:
$agentapi‑>SetErrorCallback("CustomTraceHandler");
Example:
$agentapi‑>SetErrorCallback(\&CustomTraceHandler);
mode (string)
(Optional) Specifies an output format for the trace messages:
Specifies fields enclosed by square brackets.
Specifies fixed-width fields.
Specifies using a character to delimit the fields.
Specifies fields enclosed by XML-like tags.
delim (string)
(Optional) Specifies the character to use as a delimiter when mode is set to delim.
configFileName (string)
(Optional) Specifies the name of the configuration file that specifies the data to be included in the trace.
Default: If no filename is specified, default settings are used.
Return Value
The SetTraceCallback method returns one of the following integer values:
Specifies that registration was successful.
Specifies that registration failed.
Copyright © 2010 CA. All rights reserved. | Email CA about this topic |