First pass on implementing PSR logger interface

- Created a separate PayPalLogger as default implementation.
- Enabled `log.Adapter` as a configuration to pass name of custom
  logger.
This commit is contained in:
Jay Patel
2016-04-06 14:10:54 -05:00
parent bf3c20e694
commit 69886a0741
4 changed files with 129 additions and 41 deletions

View File

@@ -90,6 +90,7 @@ function getApiContext($clientId, $clientSecret)
'cache.enabled' => true,
// 'http.CURLOPT_CONNECTTIMEOUT' => 30
// 'http.headers.PayPal-Partner-Attribution-Id' => '123123123'
// 'log.Adapter' => '\Your\Custom\Logger' // Class name of the logger to be used. Must be implementing Psr\Log\LoggerInterface
)
);