code: def test_start_serve_with_logging_config(
      self, serve_and_ray_shutdown
  ):
      serve.start(
          logging_config={"log_level": "DEBUG", "encoding": "JSON"}
      )
      serve_log_dir = get_serve_logs_dir()
      # Check controller log
      actors = state_api.list_actors()
      expected_log_regex = [".*logger with logging config.*"]
      for actor in actors:
          print(actor["name"])
          if "SERVE_CONTROLLER_ACTOR" == actor["name"]:
              controller_pid = actor["pid"]
      controller_log_file_name = get_component_log_file_name(
          "controller",
          controller_pid,
          component_type=None,
          suffix=".log",
      )
      controller_log_path = os.path.join(
          serve_log_dir, controller_log_file_name
      )
      check_log_file(controller_log_path, expected_log_regex)
  
      # Check proxy log
      nodes = state_api.list_nodes()
      node_ip_address = nodes[0].node_ip
      proxy_log_file_name = get_component_log_file_name(
          "proxy", node_ip_address, component_type=None, suffix=".log"
      )
      proxy_log_path = os.path.join(serve_log_dir, proxy_log_file_name)
      check_log_file(proxy_log_path, expected_log_regex)
  
imports: import io
  import json
  import logging
  import os
  import re
  import string
  import sys
  import time
  from contextlib import redirect_stderr
  import pytest
  import requests
  import starlette
  import ray
  import ray.util.state
  from ray import serve
  from ray._private.test_utils import wait_for_condition
  from ray.serve._private.common import ServeComponentType
  from ray.serve._private.constants import SERVE_LOG_EXTRA_FIELDS
  from ray.serve._private.logging_utils import ServeJSONFormatter, get_component_log_file_name, get_serve_logs_dir
label_desc: Use image node_id 1 for calling the TestLoggingAPI obj's underlying member method code with example usage: obj.test_start_serve_with_logging_config(serve_and_ray_shutdown) without return types