Allow to use the output handler as PEAR logger.
authorGunnar Wrobel <p@rdus.de>
Mon, 10 Jan 2011 13:16:51 +0000 (14:16 +0100)
committerGunnar Wrobel <p@rdus.de>
Mon, 10 Jan 2011 13:16:51 +0000 (14:16 +0100)
components/lib/Components/Output.php
components/lib/Components/Pear/Package.php

index ecd44f1..679c6b5 100644 (file)
@@ -135,6 +135,11 @@ class Components_Output
         $this->_cli->fatal($text);
     }
 
+    public function log($status, $text)
+    {
+        $this->pear($text);
+    }
+
     public function pear($text)
     {
         if (!$this->_verbose) {
index b99b236..13ebdd9 100644 (file)
@@ -357,6 +357,7 @@ class Components_Pear_Package
         $pkg->_packageInfo['version']['release'] = $version;
         $pkg->setDate(date('Y-m-d'));
         $pkg->setTime(date('H:i:s'));
+        $pkg->setLogger($this->_output);
         $errors = array();
         ob_start();
         $old_dir = getcwd();