ePages 6.13.2 - DE_EPAGES/ThirdPartyConfig/API/Log.pm

Package DE_EPAGES::ThirdPartyConfig::API::Log

Log functions for external payments.

@EXPORT_OK
Log3rdParty

Functions

Log3rdParty
flattenObjects

Log3rdParty

Logs a structure to the communication.log. epages objects are logged in the form '<objectid>

Syntax
Log3rdParty($Name, $Debug, $Section);
Example
Log3rdParty('SendRequestHash', \%Hash, 'Send');
Input
$Name (string)
name of data
$Debug (ref.hash, ref.array, string, object)
data to be logged
$Section (string)
name of the section to be logged (optional - defaults to name of calling sub)
$aFilter (ref.array.string)
(optional) filter (perl regular expression for
s/$Filter[^\n]+\n/\n/gis)

flattenObjects

Converts all epages objects to a string containing objectid and pathString, all datetime objects to a string of format '%Y-%m-%d %H:%M:%S %Z'.

Syntax
my $Data = flattenObjects($Data);
Input
$LogData (scalar, object, or reference)
data
Return
$LogData (scalar, object, or reference)
data