docs: def emit(self, record):
          """ 
          Throws an error based on the information that the logger reported,
          given the logging level.
          
          :param      record: <logging.LogRecord>
          """
          if not logging.raiseExceptions:
              return
  
          logger = logging.getLogger(record.name)
  
          # raise an exception based on the error logging
          if logger.level <= record.levelno:
              err = record.msg[0]
              if not isinstance(err, Exception):
                  err = ProjexError(nstr(record.msg))
  
              # log the traceback info
              data = record.__dict__.copy()
              data['type'] = type(err).__name__
              msg = ERROR_MESSAGE % data
              sys.stderr.write(msg)
              raise err