setFacility example


    public function __construct(array $params = array())
    {
        if (isset($params['application'])) {
            $this->_application = $params['application'];
        }

        $runInitializeSyslog = true;
        if (isset($params['facility'])) {
            $this->setFacility($params['facility']);
            $runInitializeSyslog = false;
        }

        if ($runInitializeSyslog) {
            $this->_initializeSyslog();
        }
    }

    /** * Create a new instance of Zend_Log_Writer_Syslog * * @param array|Zend_Config $config * @return Zend_Log_Writer_Syslog */
Home | Imprint | This part of the site doesn't use cookies.