public function log($message, $priority = null)
    {
        if ($this->logReady()) {
            $this->flushLogQueue();
            return $this->getLog()->log($message, $priority);
        } else {
            $this->queueLog($message, $priority);
        }
    }
public function log($message, $priority = null)
    {
        if ($this->logReady()) {
            $this->flushLogQueue();
            return $this->getLog()->log($message, $priority);
        } else {
            $this->queueLog($message, $priority);
        }
    }
public function log ( $ message , $ priority = null ) { if ( $ this -> logReady ( ) ) { $ this -> flushLogQueue ( ) ; return $ this -> getLog ( ) -> log ( $ message , $ priority ) ; } else { $ this -> queueLog ( $ message , $ priority ) ; } }
Add a message to the tool log file

If no logger object is ready, the message will be queued for delayed
logging until a logger object is ready.

@link https://pear.php.net/package/Log/docs/1.13.1/Log/Log_file.html#methodlog
Pass-throgh to `Log_file::log()`

@param string $message
@param string $priority (Optional, defaults to `PEAR_LOG_INFO`)
@return boolean Success
Add a message to the tool log file