Trace configuration in neaPay Simulator, Converter, Switch, Authorization and Cards Issuer
Posted on 27th Dec 2022 8349 views
Trace configuration in neaPay Simulator, Converter, Switch, Authorization and Cards Issuer
In the scripts folder of the product
neapay/scripts/
script_logging.js
Below is the content of the file and instructions how to use each setting
When sending logs to neapay for support, make sure all are set to true except last.
The last one should be used only when the product is not loading settings and configration properly.
/*
* Script variable.
* Enable or disable the display of messages in console.
* Disabling messages in console decreases memory usage and increases speed.
*/
var displayInfo = true;
DisplayInfo should generally be disabled when messages should not be displayed, like in UAT or PROD environments
Otherwise, it is advised to keep it ON
/*
* Script variable. enable logging when assigning a value to a field.
* Generates a lot of logs!
* Should be used when debugging fileds population with values
* Values are true or false
*/
var displaySetValue = false;
DisplaySetValue should generally be enabled only when message values are populated by scripts
It is very useful to ensure, track down how and which values are set for each field.
/*
* CORE variable! Enable automatic generation of Output logs to folder: logs
* Values are true or false
*/
setFileLogging(true);
The Core automatically generates the logs controlled by the other settings, and this function enables or disables writing the logs to disk
Writing log files to disk can be slow, and it will not be compliant with some regulations, like PCI DSS.
/*
* CORE variable! Enable automatic generation of Exception logs to folder: logs
* Values are true or false
*/
setFileExceptionLogging(true);
Separate logging of exceptions, without processing data
Does not impact compliance
/*
* CORE variable! Enable tracing at TCP level through the system.
* Generates a lot of logs!
* Should be used when debugging TCP traffic and message parsing
* Values are true or false
*/
setTraceTransmission(true);
Necessary when asking for support, it enables low-level writing of data, like TCP traffic, variables and data dump.
/*
* CORE variable Enable tracing on CSV data files and other configuration.
* Generates huge logs!
* Values are true or false
*/
setTraceConfiguration(false);
Necessary when the product has issues reading or writing its own configuration.