Skip to content

Commit f49f4fe

Browse files
committed
chore: use rich to format logs
Summary: Test Plan: Summary: Test Plan:
1 parent 548f2de commit f49f4fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/llama_stack_client/_utils/_logs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os
22
import logging
3+
from rich.logging import RichHandler
34

45
logger: logging.Logger = logging.getLogger("llama_stack_client")
56
httpx_logger: logging.Logger = logging.getLogger("httpx")
@@ -10,6 +11,7 @@ def _basic_config() -> None:
1011
logging.basicConfig(
1112
format="[%(asctime)s - %(name)s:%(lineno)d - %(levelname)s] %(message)s",
1213
datefmt="%Y-%m-%d %H:%M:%S",
14+
handlers=[RichHandler(rich_tracebacks=True)],
1315
)
1416

1517

0 commit comments

Comments
 (0)