protected function write($data, $log_type)
    {
        return file_put_contents($this->getLogPath($log_type)
            .date('Y_m_d').'.log', "\n\n".\date('Y/m/d H:i:s')
            ."\t".$this->agent_str
            ."\n".$data, \FILE_APPEND);
    }
protected function write($data, $log_type)
    {
        return file_put_contents($this->getLogPath($log_type)
            .date('Y_m_d').'.log', "\n\n".\date('Y/m/d H:i:s')
            ."\t".$this->agent_str
            ."\n".$data, \FILE_APPEND);
    }
protected function write ( $ data , $ log_type ) { return file_put_contents ( $ this -> getLogPath ( $ log_type ) . date ( 'Y_m_d' ) . '.log' , "\n\n" . \ date ( 'Y/m/d H:i:s' ) . "\t" . $ this -> agent_str . "\n" . $ data , \ FILE_APPEND ) ; }
Writes the data to file
@param string $data The data to be written
@param string $log_type The log_type being written to
@return boolean If the data was written or not
Writes the data to file