protected function initFile()
    {
        if ($this->maxFileSize > 0 && file_exists($this->filename) && filesize($this->filename) >= $this->maxFileSize) {
            // need to reduce the file size
            $file = file($this->filename);
            $file = array_splice($file, ceil(count($file) * $this->reduceRatio));
            $this->filehandle = @fopen($this->filename, 'w');
            foreach ($file as $line) {
                @fwrite($this->filehandle, $line);
            }
        } else {
            $this->filehandle = @fopen($this->filename, 'a');
        }
    }
protected function initFile()
    {
        if ($this->maxFileSize > 0 && file_exists($this->filename) && filesize($this->filename) >= $this->maxFileSize) {
            // need to reduce the file size
            $file = file($this->filename);
            $file = array_splice($file, ceil(count($file) * $this->reduceRatio));
            $this->filehandle = @fopen($this->filename, 'w');
            foreach ($file as $line) {
                @fwrite($this->filehandle, $line);
            }
        } else {
            $this->filehandle = @fopen($this->filename, 'a');
        }
    }
protected function initFile ( ) { if ( $ this -> maxFileSize > 0 && file_exists ( $ this -> filename ) && filesize ( $ this -> filename ) >= $ this -> maxFileSize ) { // need to reduce the file size $ file = file ( $ this -> filename ) ; $ file = array_splice ( $ file , ceil ( count ( $ file ) * $ this -> reduceRatio ) ) ; $ this -> filehandle = @ fopen ( $ this -> filename , 'w' ) ; foreach ( $ file as $ line ) { @ fwrite ( $ this -> filehandle , $ line ) ; } } else { $ this -> filehandle = @ fopen ( $ this -> filename , 'a' ) ; } }
Initialises the logfile, and checks whenever the file require pruning

@access protected
@author Joel Bout, <joel.bout@tudor.lu>
@return mixed
Initialises the logfile and checks whenever the file require pruning