Exemple #1
0
 private function createErrorStream($path = null)
 {
     $writer = null;
     if ($path == null) {
         $writer = new Zend_Log_Writer_Null();
     } else {
         self::$_errorLogPath = $path;
         $writer = new Zend_Log_Writer_Stream($path);
         $writer->addFilter(new Zend_Log_Filter_Priority(Zend_Log::ERR));
     }
     return new Logger_Application_ZendLogWrapper($writer);
 }