parameters: (debugger_output, pid, process_name)
return_statement: return process_logger
docstring: Returns the process logger from options specified.
docstring_summary: Returns the process logger from options specified.
docstring_tokens: Returns the process logger from options specified .
function: def get_process_logger(debugger_output, pid, process_name):
      """Returns the process logger from options specified."""
      process_logger = logging.Logger("process", level=logging.DEBUG)
      process_logger.mongo_process_filename = None
  
      if 'stdout' in debugger_output:
          handler = logging.StreamHandler(sys.stdout)
          handler.setFormatter(logging.Formatter(fmt="%(message)s"))
          process_logger.addHandler(handler)
  
      if 'file' in debugger_output:
          filename = "debugger_%s_%d.log" % (os.path.splitext(process_name)[0], pid)
          process_logger.mongo_process_filename = filename
          handler = logging.FileHandler(filename=filename, mode="w")
          handler.setFormatter(logging.Formatter(fmt="%(message)s"))
          process_logger.addHandler(handler)
  
      return process_logger
function_tokens: def get_process_logger ( debugger_output , pid , process_name ) : process_logger = logging . Logger ( "process" , level = logging . DEBUG ) process_logger . mongo_process_filename = None if 'stdout' in debugger_output : handler = logging . StreamHandler ( sys . stdout ) handler . setFormatter ( logging . Formatter ( fmt = "%(message)s" ) ) process_logger . addHandler ( handler ) if 'file' in debugger_output : filename = "debugger_%s_%d.log" % ( os . path . splitext ( process_name ) [ 0 ] , pid ) process_logger . mongo_process_filename = filename handler = logging . FileHandler ( filename = filename , mode = "w" ) handler . setFormatter ( logging . Formatter ( fmt = "%(message)s" ) ) process_logger . addHandler ( handler ) return process_logger