Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
 
3
/*
4
 * This file is part of the symfony package.
5
 * (c) 2004-2006 Fabien Potencier <fabien.potencier@symfony-project.com>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
 
11
/**
12
 * sfConsoleLogger logs messages to the console.
13
 *
14
 * @package    symfony
15
 * @subpackage log
16
 * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
17
 * @version    SVN: $Id: sfConsoleLogger.class.php 10952 2008-08-19 15:04:33Z fabien $
18
 */
19
class sfConsoleLogger extends sfStreamLogger
20
{
21
  /**
22
   * @see sfStreamLogger
23
   */
24
  public function initialize(sfEventDispatcher $dispatcher, $options = array())
25
  {
26
    $options['stream'] = defined('STDOUT') ? STDOUT : fopen('php://stdout', 'w');
27
 
28
    return parent::initialize($dispatcher, $options);
29
  }
30
}