Beispiel #1
0
 /**
  * Sets the given Zend_Log object into the internal log property.
  * If no log given, a new instance with the internal configuration will be created.
  * @param Enlight_Components_Log|Zend_Log $log
  */
 public function setResource(Zend_Log $log = null)
 {
     if ($log === null) {
         $config = $this->Config();
         if (count($config) === 0) {
             $config = new Enlight_Config(array(array('writerName' => 'Null'), array('writerName' => 'Firebug')));
         }
         $log = Enlight_Components_Log::factory($config);
     }
     $this->log = $log;
 }