Google\Cloud\Logging\PsrLogger::error PHP Method

error() public method

Example: $psrLogger->error('error message');
public error ( string $message, array $context = [] )
$message string The message to log.
$context array [optional] Please see {@see \Google\Cloud\Logging\PsrLogger::log()} for the available options.
    public function error($message, array $context = [])
    {
        $this->log(Logger::ERROR, $message, $context);
    }