ePages 6.17.39 - DE_EPAGES/EPagesJ/API/Object/CommunicationLogger.pm

Package DE_EPAGES::EPagesJ::API::Object::CommunicationLogger

Logger used for communictions logging

Functions

isLogging
logCommunication
new

isLogging

Returns true if communications logging is enabled

Syntax
my $isLogging = $Logger->isLogging();
Return
$isLogging (boolean)
true if logging enabled

logCommunication

Calls LogCommunication() to log some communication contents, either some string or HTTP::Request / HTTP::Response objects.

Syntax
$Logger->logCommunication( $Content );
Input
$Content (string or HTTP::Request or HTTP::Response)
String or object to log

new

Standard constructor

Syntax
my $Logger = DE_EPAGES::EPagesJ::API::Object::CommunicationLogger->new($hInfo);
Input
%args (hash)
argument hash. used keys:
  • LogCategory - log category (log4perl) - string
  • isLogging - enable or disablecommunications logging - boolean
Return
$self (DE_EPAGES::EPagesJ::API::Object::CommunicationLogger)
new object