1 <?php
2
3 namespace PayPal\Log;
4
5 use Psr\Log\LoggerInterface;
6
7 /**
8 * Class PayPalDefaultLogFactory
9 *
10 * This factory is the default implementation of Log factory.
11 *
12 * @package PayPal\Log
13 */
14 class PayPalDefaultLogFactory implements PayPalLogFactory
15 {
16 /**
17 * Returns logger instance implementing LoggerInterface.
18 *
19 * @param string $className
20 * @return LoggerInterface instance of logger object implementing LoggerInterface
21 */
22 public function getLogger($className)
23 {
24 return new PayPalLogger($className);
25 }
26 }
27