original_docstring: 
      Add a project-specific :class:`FileHandler` for all logging output.
  
      This enables logging to a file that's kept within the project
      directory.
      
docstring: Add a project-specific :class:`FileHandler` for all logging output.
  This enables logging to a file that's kept within the project
  directory.
docstring_tokens: Add a project - specific : class : ` FileHandler ` for all logging output . This enables logging to a file that ' s kept within the project directory .
code: def add_project_handler(log_file):
      """
      Add a project-specific :class:`FileHandler` for all logging output.
  
      This enables logging to a file that's kept within the project
      directory.
      """
      loggers = list(logconf.CONFIG['loggers'].keys())
      proj_handler = logging.FileHandler(log_file, mode='w')
      fmt = logging.getLogger('commongroups').handlers[0].formatter
      proj_handler.setFormatter(fmt)
      for item in loggers:
          lgr = logging.getLogger(item)
          lgr.addHandler(proj_handler)
code_tokens: def add_project_handler ( log_file ) : loggers = list ( logconf . CONFIG [ 'loggers' ] . keys ( ) ) proj_handler = logging . FileHandler ( log_file , mode = 'w' ) fmt = logging . getLogger ( 'commongroups' ) . handlers [ 0 ] . formatter proj_handler . setFormatter ( fmt ) for item in loggers : lgr = logging . getLogger ( item ) lgr . addHandler ( proj_handler )
short_docstring: Add a project-specific :class:`FileHandler` for all logging output.
short_docstring_tokens: Add a project - specific : class : ` FileHandler ` for all logging output .
comment: """
      Add a project-specific :class:`FileHandler` for all logging output.
  
      This enables logging to a file that's kept within the project
      directory.
      """