Crypt/GPG/PinEntry.php
protected function log($data, $level)
    {
        if ($this->verbosity >= $level) {
            if (is_resource($this->logFile)) {
                fwrite($this->logFile, $data);
                fflush($this->logFile);
            } else {
                $this->parser->outputter->stderr($data);
            }
        }

        return $this;
    }
protected function log($data, $level)
    {
        if ($this->verbosity >= $level) {
            if (is_resource($this->logFile)) {
                fwrite($this->logFile, $data);
                fflush($this->logFile);
            } else {
                $this->parser->outputter->stderr($data);
            }
        }

        return $this;
    }
Logs a message at the specified verbosity level

If a log file is used, the message is written to the log. Otherwise,
the message is sent to STDERR.

@param string  $data  the message to log.
@param integer $level the verbosity level above which the message should
be logged.

@return Crypt_GPG_PinEntry the current object, for fluent interface.