class_docstr: Logger Unittest class.
class_docstr_tok: ["Logger","Unittest","class","."]
docstr: Test streamlit.logger.setup_log_formatter.
docstr_tok: ["Test","streamlit.logger.setup_log_formatter","."]
code: def test_setup_log_formatter(self, messageFormat, config_options):
      """Test streamlit.logger.setup_log_formatter."""
  
      LOGGER = logger.get_logger("test")
  
      config._set_option("logger.messageFormat", messageFormat, "test")
      config._set_option("logger.level", logging.DEBUG, "test")
  
      with patch.object(config, "_config_options", new=config_options):
          logger.setup_formatter(LOGGER)
          self.assertEqual(len(LOGGER.handlers), 1)
          if config_options:
              self.assertEqual(
                  LOGGER.handlers[0].formatter._fmt,
                  messageFormat or "%(message)s",
              )
          else:
              self.assertEqual(
                  LOGGER.handlers[0].formatter._fmt,
                  logger.DEFAULT_LOG_MESSAGE,
              )
  
file_path: streamlit/lib/tests/streamlit/logger_test.py
imports: import logging
  import unittest
  from collections import OrderedDict
  from unittest.mock import patch
  import pytest
  from parameterized import parameterized
  from streamlit import config, logger
label_desc: Use image node_id 3 for calling the LoggerTest obj's underlying member method code with example usage: obj.test_setup_log_formatter(messageFormat, config_options) without return types