'This method is called from the output object. The output object was
called from a plugin or from the framework. This method should take an
action for error messages.'

def error(self, message, new_line=True):

    self.write(message, 'error', new_line, flush=True)
