Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / interface / modules / zend_modules / library / Zend / Log / LoggerServiceFactory.php
bloba2896ae308ebb9265ff11da92ceeb7c4d8b5e960
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
8 */
10 namespace Zend\Log;
12 use Zend\ServiceManager\FactoryInterface;
13 use Zend\ServiceManager\ServiceLocatorInterface;
15 /**
16 * Logger.
18 class LoggerServiceFactory implements FactoryInterface
20 public function createService(ServiceLocatorInterface $serviceLocator)
22 // Configure the logger
23 $config = $serviceLocator->get('Config');
24 $logConfig = isset($config['log']) ? $config['log'] : array();
25 $logger = new Logger($logConfig);
26 return $logger;