You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
help="Comma separated list of IP Addresses to trust with proxy headers. The literal '*' means trust everything."
300
304
),
301
305
] =None,
306
+
log_config: Annotated[
307
+
str|None,
308
+
typer.Option(
309
+
"--log-config",
310
+
help="Path to uvicorn log config yaml or json format, read more at [link=https://uvicorn.dev/settings/#logging]https://uvicorn.dev/settings/#logging[/link]."
311
+
),
312
+
] =None,
302
313
) ->Any:
303
314
"""
304
315
Run a [bold]FastAPI[/bold] app in [yellow]development[/yellow] mode. 🧪
@@ -337,6 +348,7 @@ def dev(
337
348
command="dev",
338
349
proxy_headers=proxy_headers,
339
350
forwarded_allow_ips=forwarded_allow_ips,
351
+
log_config=log_config,
340
352
)
341
353
342
354
@@ -406,6 +418,13 @@ def run(
406
418
help="Comma separated list of IP Addresses to trust with proxy headers. The literal '*' means trust everything."
407
419
),
408
420
] =None,
421
+
log_config: Annotated[
422
+
str|None,
423
+
typer.Option(
424
+
"--log-config",
425
+
help="Path to uvicorn log config yaml or json format, read more at [link=https://uvicorn.dev/settings/#logging]https://uvicorn.dev/settings/#logging[/link]."
426
+
),
427
+
] =None,
409
428
) ->Any:
410
429
"""
411
430
Run a [bold]FastAPI[/bold] app in [green]production[/green] mode. 🚀
0 commit comments