* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * sfConsoleLogger logs messages to the console. * * @package symfony * @subpackage log * @author Fabien Potencier * @version SVN: $Id: sfConsoleLogger.class.php 10952 2008-08-19 15:04:33Z fabien $ */ class sfConsoleLogger extends sfStreamLogger { /** * @see sfStreamLogger */ public function initialize(sfEventDispatcher $dispatcher, $options = array()) { $options['stream'] = defined('STDOUT') ? STDOUT : fopen('php://stdout', 'w'); return parent::initialize($dispatcher, $options); } }