library/Garp/Log.php
static public function factory($config = array()) {
        if (is_string($config)) {
            // Assume $config is a filename
            $filename = $config;
            $config = array(
                'timestampFormat' => 'Y-m-d',
                array(
                    'writerName' => 'Stream',
                    'writerParams' => array(
                        'stream' => self::_getLoggingDirectory() . DIRECTORY_SEPARATOR . $filename
                    )
                )
            );
        }
        return parent::factory($config);
    }
static public function factory($config = array()) {
        if (is_string($config)) {
            // Assume $config is a filename
            $filename = $config;
            $config = array(
                'timestampFormat' => 'Y-m-d',
                array(
                    'writerName' => 'Stream',
                    'writerParams' => array(
                        'stream' => self::_getLoggingDirectory() . DIRECTORY_SEPARATOR . $filename
                    )
                )
            );
        }
        return parent::factory($config);
    }
static public function factory ( $ config = array ( ) ) { if ( is_string ( $ config ) ) { // Assume $config is a filename $ filename = $ config ; $ config = array ( 'timestampFormat' => 'Y-m-d' , array ( 'writerName' => 'Stream' , 'writerParams' => array ( 'stream' => self :: _getLoggingDirectory ( ) . DIRECTORY_SEPARATOR . $ filename ) ) ) ; } return parent :: factory ( $ config ) ; }
Shortcut to fetching a configured logger instance

@param  array|Zend_Config $config Array or instance of Zend_Config
@return Zend_Log
Shortcut to fetching a configured logger instance