Repository: ray-project/ray
Issue category: Bug Report

Issue:
[serve] logging_config specified in `serve.run` is not propagated cluster-wide
### Description

Specifying `logging_config` in `serve.run(..., logging_config={...})` does not configure logging for the cluster, as is expected. This is because we don't propagate `logging_config` to `.serve_start(...)` here:

https://github.com/ray-project/ray/blob/master/python/ray/serve/api.py#L475-L477

A simple workaround for now is,
```Python
logging_config = {"log_level": "..."}
serve.start(logging_config=logging_config)
serve.run(logging_config=logging_config)
```

### Use case

This issue arose when trying to configure Serve logging holistically for tests.


Hints:

Patch:
diff --git a/python/ray/serve/api.py b/python/ray/serve/api.py
index 182795889d47..13b92c7fcaae 100644
--- a/python/ray/serve/api.py
+++ b/python/ray/serve/api.py
@@ -474,6 +474,7 @@ def _run(
     else:
         client = _private_api.serve_start(
             http_options={"location": "EveryNode"},
+            global_logging_config=logging_config,
         )
         # Record after Ray has been started.
         ServeUsageTag.API_VERSION.record("v2")


Test patch: