parameters: (name, to_log, size=8192)
return_statement: return logger
docstring: Creates a memory logger to avoid writing concurrently to the main logger
docstring_summary: Creates a memory logger to avoid writing concurrently to the main logger
docstring_tokens: Creates a memory logger to avoid writing concurrently to the main logger
function: def make_mem_logger(name, to_log, size=8192):
  	"""
  	Creates a memory logger to avoid writing concurrently to the main logger
  	"""
  	from logging.handlers import MemoryHandler
  	logger = logging.getLogger(name)
  	hdlr = MemoryHandler(size, target=to_log)
  	formatter = logging.Formatter('%(message)s')
  	hdlr.setFormatter(formatter)
  	logger.addHandler(hdlr)
  	logger.memhandler = hdlr
  	logger.setLevel(logging.DEBUG)
  	return logger
function_tokens: def make_mem_logger ( name , to_log , size = 8192 ) : from logging . handlers import MemoryHandler logger = logging . getLogger ( name ) hdlr = MemoryHandler ( size , target = to_log ) formatter = logging . Formatter ( '%(message)s' ) hdlr . setFormatter ( formatter ) logger . addHandler ( hdlr ) logger . memhandler = hdlr logger . setLevel ( logging . DEBUG ) return logger