<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic PHP SDK: logging in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-SDK-logging/m-p/56580#M31361</link>
    <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;I'm trying to set up logging in the php SDK and I'm reading the docs here:&amp;nbsp;&lt;A href="https://github.com/AuthorizeNet/sdk-php#logging" target="_blank"&gt;https://github.com/AuthorizeNet/sdk-php#logging&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;But I'm not quite clear on what to send using the PHP SKD, and not xml.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Would I log the request like this:&amp;nbsp;&lt;SPAN&gt;$logger-&amp;gt;debug($request);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;And the response the same way:&amp;nbsp;&lt;SPAN&gt;$logger-&amp;gt;debug($response&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;&lt;SPAN&gt;Also, where would I set the log level?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;&lt;SPAN&gt;Don&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jan 2017 15:38:31 GMT</pubDate>
    <dc:creator>fifty-git</dc:creator>
    <dc:date>2017-01-06T15:38:31Z</dc:date>
    <item>
      <title>PHP SDK: logging</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-SDK-logging/m-p/56580#M31361</link>
      <description>&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;I'm trying to set up logging in the php SDK and I'm reading the docs here:&amp;nbsp;&lt;A href="https://github.com/AuthorizeNet/sdk-php#logging" target="_blank"&gt;https://github.com/AuthorizeNet/sdk-php#logging&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;But I'm not quite clear on what to send using the PHP SKD, and not xml.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;Would I log the request like this:&amp;nbsp;&lt;SPAN&gt;$logger-&amp;gt;debug($request);&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;And the response the same way:&amp;nbsp;&lt;SPAN&gt;$logger-&amp;gt;debug($response&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;&lt;SPAN&gt;Also, where would I set the log level?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;&lt;SPAN&gt;&lt;SPAN&gt;Don&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 15:38:31 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-SDK-logging/m-p/56580#M31361</guid>
      <dc:creator>fifty-git</dc:creator>
      <dc:date>2017-01-06T15:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: PHP SDK: logging</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-SDK-logging/m-p/56594#M31375</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class=""&gt;&lt;A href="https://community.developer.cybersource.com/t5/user/viewprofilepage/user-id/20163" target="_self"&gt;fifty-git&lt;/A&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;You can define a file for the debugging log to write as below : &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;define("AUTHORIZENET_LOG_FILE",&amp;nbsp;"phplog");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Joy&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 23:09:07 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-SDK-logging/m-p/56594#M31375</guid>
      <dc:creator>Joy</dc:creator>
      <dc:date>2017-01-06T23:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: PHP SDK: logging</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-SDK-logging/m-p/70503#M43301</link>
      <description>&lt;P&gt;I realize this is an old thread, but I can't figure out how to set the logging level.&amp;nbsp; My log is filled with INFO and DEBUG messages that are not necessary.&amp;nbsp; I tried:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;define&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"ANET_LOG_LEVEL"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;ANET_LOG_ERROR&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but no luck.&amp;nbsp; Can anyone help me get this set to ERROR?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 19:52:05 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/PHP-SDK-logging/m-p/70503#M43301</guid>
      <dc:creator>ameyer</dc:creator>
      <dc:date>2020-02-04T19:52:05Z</dc:date>
    </item>
  </channel>
</rss>

