public function merge($logs)
    {
        if (!empty($logs->msg)) {
            $this->mergeCore('msg', $logs->msg);
            $this->addLogBlockToFile($logs->msg, 'MESSAGE');
        }

        if (!empty($logs->err)) {
            $this->mergeCore('err', $logs->err);
            $this->addLogBlockToFile($logs->err, 'ERROR');
        }

        if (!empty($logs->war)) {
            $this->mergeCore('war', $logs->war);
            $this->addLogBlockToFile($logs->war, 'WARNING');
        }

        if (!empty($logs->deb)) {
            $this->mergeCore('deb', $logs->deb);
            $this->addLogBlockToFile($logs->deb, 'DEBUG');
        }

        return true;
    }
public function merge($logs)
    {
        if (!empty($logs->msg)) {
            $this->mergeCore('msg', $logs->msg);
            $this->addLogBlockToFile($logs->msg, 'MESSAGE');
        }

        if (!empty($logs->err)) {
            $this->mergeCore('err', $logs->err);
            $this->addLogBlockToFile($logs->err, 'ERROR');
        }

        if (!empty($logs->war)) {
            $this->mergeCore('war', $logs->war);
            $this->addLogBlockToFile($logs->war, 'WARNING');
        }

        if (!empty($logs->deb)) {
            $this->mergeCore('deb', $logs->deb);
            $this->addLogBlockToFile($logs->deb, 'DEBUG');
        }

        return true;
    }
public function merge ( $ logs ) { if ( ! empty ( $ logs -> msg ) ) { $ this -> mergeCore ( 'msg' , $ logs -> msg ) ; $ this -> addLogBlockToFile ( $ logs -> msg , 'MESSAGE' ) ; } if ( ! empty ( $ logs -> err ) ) { $ this -> mergeCore ( 'err' , $ logs -> err ) ; $ this -> addLogBlockToFile ( $ logs -> err , 'ERROR' ) ; } if ( ! empty ( $ logs -> war ) ) { $ this -> mergeCore ( 'war' , $ logs -> war ) ; $ this -> addLogBlockToFile ( $ logs -> war , 'WARNING' ) ; } if ( ! empty ( $ logs -> deb ) ) { $ this -> mergeCore ( 'deb' , $ logs -> deb ) ; $ this -> addLogBlockToFile ( $ logs -> deb , 'DEBUG' ) ; } return true ; }
Merge All Messages from a second class with current class

@param array|ArrayObject $logs Second logging array

@return bool
Merge All Messages from a second class with current class