public function setLogDestination($type)
    {
        switch ($type) {
            case SMARTIRC_FILE:
            case SMARTIRC_STDOUT:
            case SMARTIRC_SYSLOG:
            case SMARTIRC_BROWSEROUT:
            case SMARTIRC_NONE:
                $this->_logdestination = $type;
                break;

            default:
                $this->log(SMARTIRC_DEBUG_NOTICE,
                    'WARNING: unknown logdestination type ('.$type
                    .'), will use STDOUT instead', __FILE__, __LINE__);
                $this->_logdestination = SMARTIRC_STDOUT;
        }
        return $this->_logdestination;
    }
public function setLogDestination($type)
    {
        switch ($type) {
            case SMARTIRC_FILE:
            case SMARTIRC_STDOUT:
            case SMARTIRC_SYSLOG:
            case SMARTIRC_BROWSEROUT:
            case SMARTIRC_NONE:
                $this->_logdestination = $type;
                break;

            default:
                $this->log(SMARTIRC_DEBUG_NOTICE,
                    'WARNING: unknown logdestination type ('.$type
                    .'), will use STDOUT instead', __FILE__, __LINE__);
                $this->_logdestination = SMARTIRC_STDOUT;
        }
        return $this->_logdestination;
    }
public function setLogDestination ( $ type ) { switch ( $ type ) { case SMARTIRC_FILE : case SMARTIRC_STDOUT : case SMARTIRC_SYSLOG : case SMARTIRC_BROWSEROUT : case SMARTIRC_NONE : $ this -> _logdestination = $ type ; break ; default : $ this -> log ( SMARTIRC_DEBUG_NOTICE , 'WARNING: unknown logdestination type (' . $ type . '), will use STDOUT instead' , __FILE__ , __LINE__ ) ; $ this -> _logdestination = SMARTIRC_STDOUT ; } return $ this -> _logdestination ; }
Sets the destination of all log messages.

Sets the destination of log messages.
$type can be:
SMARTIRC_FILE for saving the log into a file
SMARTIRC_STDOUT for echoing the log to stdout
SMARTIRC_SYSLOG for sending the log to the syslog
Default: SMARTIRC_STDOUT

@api
@see SMARTIRC_STDOUT
@param integer $type must be on of the constants
@return integer
Sets the destination of all log messages .