code: def error_log(self, msg='', level=20, traceback=False):
          
          # Override this in subclasses as desired
          sys.stderr.write(msg + '\n')
          sys.stderr.flush()
          if traceback:
              tblines = traceback_.format_exc()
              sys.stderr.write(tblines)
              sys.stderr.flush()
docs: Write error message to log.
  
          Args:
              msg (str): error message
              level (int): logging level
              traceback (bool): add traceback to output or not