protected function writeLog($level, $message, $context)
    {
        if (!$this->handle) {
            $this->handle = fopen($this->getFile(), 'a');
        }
        $content = $this->formatLog($level, $message, $context);
        return (bool)fwrite($this->handle, $content);
    }
protected function writeLog($level, $message, $context)
    {
        if (!$this->handle) {
            $this->handle = fopen($this->getFile(), 'a');
        }
        $content = $this->formatLog($level, $message, $context);
        return (bool)fwrite($this->handle, $content);
    }
protected function writeLog ( $ level , $ message , $ context ) { if ( ! $ this -> handle ) { $ this -> handle = fopen ( $ this -> getFile ( ) , 'a' ) ; } $ content = $ this -> formatLog ( $ level , $ message , $ context ) ; return ( bool ) fwrite ( $ this -> handle , $ content ) ; }
Write the log message

@param string $level
@param string $message
@param mixed $context
@return bool
Write the log message