Reply
Highlighted
Member
Posts: 9
Registered: ‎02-28-2015
Accepted Solution

Writing to the authorize-net.log file

I don't know if it is important, because things seem to be working OK with integration using the SIM method.  However, I was wondering how to write logging information to the authorize-net.log file ?  It is configured it my phphunit_config.php file:

 

define( "AUTHORIZENET_LOG_FILE",  "authorize-net.log");

 

and it looks like it uses authorize-net.log by default if you don't define it.  However, I am not seeing any data in the log file.  Is that something that you have to turn on or is it suppose to do it by default?

 

I only see that in code in HttpClient.php, AuthorizeNetRequest.php and in the test suite.  Just curious about what gets written there by default, if anything and how to enable it.


Accepted Solutions
Highlighted
Solution
Accepted by topic author sscotti
‎08-21-2015 01:58 AM
Administrator Administrator
Administrator
Posts: 563
Registered: ‎08-03-2011

Re: Writing to the authorize-net.log file

 

Hi sscotti,

 

If defined, the PHP SDK logfile should have information primarily from the httpclient class. This logging should not be enabled for production use because it logs full post data.

 

Thanks,

Joy

View solution in original post


All Replies
Highlighted
Solution
Accepted by topic author sscotti
‎08-21-2015 01:58 AM
Administrator Administrator
Administrator
Posts: 563
Registered: ‎08-03-2011

Re: Writing to the authorize-net.log file

 

Hi sscotti,

 

If defined, the PHP SDK logfile should have information primarily from the httpclient class. This logging should not be enabled for production use because it logs full post data.

 

Thanks,

Joy