def test_initialize_logging(self, mock_get_gcp_logger): with patch.dict('os.environ', {'GAE_ENV': ''}): curation_gae_handler.initialize_logging(logging.DEBUG) logging.info(self.info_log_record) logging.debug(self.debug_log_line) logging.error(self.error_log_record) self.assertEqual(3, mock_get_gcp_logger.call_count)
def set_up_logging(): initialize_logging()
def set_up_logging(): initialize_logging() initialize_slack_logging()