parameters: (self, fh=sys.stdout, level=logging.INFO,
              write_interval=False, write_times=True)
docstring: Enable logging to the terminal.
docstring_summary: Enable logging to the terminal.
docstring_tokens: Enable logging to the terminal .
function: def add_terminal_logging(self, fh=sys.stdout, level=logging.INFO,
              write_interval=False, write_times=True):
          """Enable logging to the terminal."""
  
          formatter = StructuredHumanFormatter(self.start_time,
              write_interval=write_interval, write_times=write_times)
  
          if self.terminal:
              formatter = StructuredTerminalFormatter(self.start_time,
                  write_interval=write_interval, write_times=write_times)
              formatter.set_terminal(self.terminal)
  
          handler = logging.StreamHandler(stream=fh)
          handler.setFormatter(formatter)
          handler.setLevel(level)
  
          for logger in self.structured_loggers:
              logger.addHandler(handler)
  
          self.terminal_handler = handler
          self.terminal_formatter = formatter
function_tokens: def add_terminal_logging ( self , fh = sys . stdout , level = logging . INFO , write_interval = False , write_times = True ) : formatter = StructuredHumanFormatter ( self . start_time , write_interval = write_interval , write_times = write_times ) if self . terminal : formatter = StructuredTerminalFormatter ( self . start_time , write_interval = write_interval , write_times = write_times ) formatter . set_terminal ( self . terminal ) handler = logging . StreamHandler ( stream = fh ) handler . setFormatter ( formatter ) handler . setLevel ( level ) for logger in self . structured_loggers : logger . addHandler ( handler ) self . terminal_handler = handler self . terminal_formatter = formatter