code: def error(self, *args):
          
          if _canShortcutLogging(self.logCategory, ERROR):
              return
          errorObject(self.logObjectName(), self.logCategory,
              *self.logFunction(*args))
docs: Log an error.  By default this will also raise an exception.