LogRPCTraffic (open)

Log RPC traffic


LOADLIB "mod::system/lib/logging.whlib";

MACRO LogRPCTraffic(STRING logsource, STRING transport, BOOLEAN outgoing, STRING sourcetracker, STRING transactionid, RECORD data)


STRING logsource

Source or call of the rpc action (eg: webshop:payment.buckaroo, or statsserver:service.regsiter)

STRING transport

Transport method or destination

BOOLEAN outgoing

Set to true for outgoing traffic

STRING sourcetracker

Orginal requestor (IP address or trackingstamp if possible)

STRING transactionid

RPC transaction id, to join request and response together


Data to log. A request/reponse body should be logged into the cell 'body'