mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-04 18:13:44 +00:00
chore(telemetry): code cleanup
# What does this PR do? ## Test Plan # What does this PR do? ## Test Plan
This commit is contained in:
parent
d12e5f0999
commit
2746615af9
37 changed files with 98 additions and 184 deletions
|
|
@ -9,15 +9,23 @@ import os
|
|||
import re
|
||||
from logging.config import dictConfig # allow-direct-logging
|
||||
|
||||
from pydantic import BaseModel, Field
|
||||
from rich.console import Console
|
||||
from rich.errors import MarkupError
|
||||
from rich.logging import RichHandler
|
||||
|
||||
from llama_stack.core.datatypes import LoggingConfig
|
||||
|
||||
# Default log level
|
||||
DEFAULT_LOG_LEVEL = logging.INFO
|
||||
|
||||
|
||||
class LoggingConfig(BaseModel):
|
||||
category_levels: dict[str, str] = Field(
|
||||
default_factory=dict,
|
||||
description="""
|
||||
Dictionary of different logging configurations for different portions (ex: core, server) of llama stack""",
|
||||
)
|
||||
|
||||
|
||||
# Predefined categories
|
||||
CATEGORIES = [
|
||||
"core",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue