src/TaskLogger.php
public function endError(string $message, array $context = []) {
        return $this->end($message, [self::FIELD_LEVEL => LogLevel::ERROR] + $context);
    }
public function endError(string $message, array $context = []) {
        return $this->end($message, [self::FIELD_LEVEL => LogLevel::ERROR] + $context);
    }
public function endError ( string $ message , array $ context = [ ] ) { return $ this -> end ( $ message , [ self :: FIELD_LEVEL => LogLevel :: ERROR ] + $ context ) ; }
Output a message that represents a task being completed in an error.

When formatting is turned on, error messages are output in red.

@param string $message The message to output.
@param array $context The log context.
@return $this
Output a message that represents a task being completed in an error .