cancel
Showing results for 
Search instead for 
Did you mean: 

PHP SDK: logging

I'm trying to set up logging in the php SDK and I'm reading the docs here: https://github.com/AuthorizeNet/sdk-php#logging

 

But I'm not quite clear on what to send using the PHP SKD, and not xml.

 

Would I log the request like this: $logger->debug($request);

And the response the same way: $logger->debug($response);

 

Also, where would I set the log level?

 

Thanks,

 

Don

fifty-git
Regular Contributor
2 REPLIES 2

 

Hi fifty-git,

 

You can define a file for the debugging log to write as below :  

 

define("AUTHORIZENET_LOG_FILE", "phplog");

 

Thanks,

Joy

Joy
Administrator Administrator
Administrator

I realize this is an old thread, but I can't figure out how to set the logging level.  My log is filled with INFO and DEBUG messages that are not necessary.  I tried:

 

define("ANET_LOG_LEVEL",ANET_LOG_ERROR);

 

but no luck.  Can anyone help me get this set to ERROR?