def METHOD_NAME(self):
    err_out = setup_loggers(self.pav_cfg)
    # Log through each of the logging mechanisms.
    # Check the result logger
    result_logger = logging.getLogger('common_results')
    result_msg = json.dumps({
        "name": str(uuid.uuid4()),
    })
    result_logger.error(result_msg)
    # Make sure our message got logged.
    result_log_data = self.pav_cfg.result_log.open().read()
    self.assertIn(result_msg + '\n', result_log_data)
    # Check that yapsy errors go to stderr (or the stream we replaced
    # stderr with).
    yapsy_logger = logging.getLogger('yapsy')
    yapsy_msg = str(uuid.uuid4())
    yapsy_logger.error("Testing logging through yapsy. %s", yapsy_msg)
    self.assertIn(yapsy_msg, err_out.getvalue())
    exc_log_path = self.pav_cfg.exception_log
    if exc_log_path is None:
        exc_log_path = self.pav_cfg.working_dir/'exceptions.log'
    # Check that exceptions get logged to.
    exc_logger = logging.getLogger('exceptions')
    exc_msg = str(uuid.uuid4())
    exc_logger.error(exc_msg)
    exc_log_data = exc_log_path.open().read()
    self.assertIn(exc_msg, exc_log_data)
    # This should log through the 'root' logger.
    my_logger = logging.getLogger(__file__)
    root_msg = str(uuid.uuid4())
    my_logger.error(root_msg)
    root_log_data = (self.pav_cfg.working_dir/'pav.log').open().read()
    # All data goes to the root log as well.
    self.assertIn(result_msg, root_log_data)
    self.assertIn(yapsy_msg, root_log_data)
    self.assertIn(exc_msg, root_log_data)
    self.assertIn(root_msg, root_log_data)