Skip to content

Commit b73b1db

Browse files
committed
refactor(logging): rename llama_stack logger categories
This PR renames logging categores of llama_stack logger across the codebase according to #3065 (comment). Signed-off-by: Mustafa Elbehery <[email protected]>
1 parent 14082b2 commit b73b1db

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+1231
-77
lines changed

docs/source/providers/agents/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
Agents API for creating and interacting with agentic systems.
66

7-
Main functionalities provided by this API:
8-
- Create agents with specific instructions and ability to use tools.
9-
- Interactions with agents are grouped into sessions ("threads"), and each interaction is called a "turn".
10-
- Agents can be provided with various tools (see the ToolGroups and ToolRuntime APIs for more details).
11-
- Agents can be provided with various shields (see the Safety API for more details).
12-
- Agents can also use Memory to retrieve information from knowledge bases. See the RAG Tool and Vector IO APIs for more details.
7+
Main functionalities provided by this API:
8+
- Create agents with specific instructions and ability to use tools.
9+
- Interactions with agents are grouped into sessions ("threads"), and each interaction is called a "turn".
10+
- Agents can be provided with various tools (see the ToolGroups and ToolRuntime APIs for more details).
11+
- Agents can be provided with various shields (see the Safety API for more details).
12+
- Agents can also use Memory to retrieve information from knowledge bases. See the RAG Tool and Vector IO APIs for more details.
1313

1414
This section contains documentation for all available providers for the **agents** API.
1515

docs/source/providers/batches/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
Protocol for batch processing API operations.
66

7-
The Batches API enables efficient processing of multiple requests in a single operation,
8-
particularly useful for processing large datasets, batch evaluation workflows, and
9-
cost-effective inference at scale.
7+
The Batches API enables efficient processing of multiple requests in a single operation,
8+
particularly useful for processing large datasets, batch evaluation workflows, and
9+
cost-effective inference at scale.
1010

11-
Note: This API is currently under active development and may undergo changes.
11+
Note: This API is currently under active development and may undergo changes.
1212

1313
This section contains documentation for all available providers for the **batches** API.
1414

docs/source/providers/inference/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
Llama Stack Inference API for generating completions, chat completions, and embeddings.
66

7-
This API provides the raw interface to the underlying models. Two kinds of models are supported:
8-
- LLM models: these models generate "raw" and "chat" (conversational) completions.
9-
- Embedding models: these models generate embeddings to be used for semantic search.
7+
This API provides the raw interface to the underlying models. Two kinds of models are supported:
8+
- LLM models: these models generate "raw" and "chat" (conversational) completions.
9+
- Embedding models: these models generate embeddings to be used for semantic search.
1010

1111
This section contains documentation for all available providers for the **inference** API.
1212

llama_stack/cli/stack/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
REPO_ROOT = Path(__file__).parent.parent.parent.parent
1717

18-
logger = get_logger(name=__name__, category="server")
18+
logger = get_logger(name=__name__, category="cli")
1919

2020

2121
class StackRun(Subcommand):

llama_stack/core/routers/datasets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from llama_stack.log import get_logger
1313
from llama_stack.providers.datatypes import RoutingTable
1414

15-
logger = get_logger(name=__name__, category="core")
15+
logger = get_logger(name=__name__, category="core::routers")
1616

1717

1818
class DatasetIORouter(DatasetIO):

llama_stack/core/routers/eval_scoring.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from llama_stack.log import get_logger
1717
from llama_stack.providers.datatypes import RoutingTable
1818

19-
logger = get_logger(name=__name__, category="core")
19+
logger = get_logger(name=__name__, category="core::routers")
2020

2121

2222
class ScoringRouter(Scoring):

llama_stack/core/routers/inference.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
from llama_stack.providers.utils.inference.inference_store import InferenceStore
6666
from llama_stack.providers.utils.telemetry.tracing import get_current_span
6767

68-
logger = get_logger(name=__name__, category="inference")
68+
logger = get_logger(name=__name__, category="core::routers")
6969

7070

7171
class InferenceRouter(Inference):

llama_stack/core/routers/safety.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from llama_stack.log import get_logger
1414
from llama_stack.providers.datatypes import RoutingTable
1515

16-
logger = get_logger(name=__name__, category="core")
16+
logger = get_logger(name=__name__, category="core::routers")
1717

1818

1919
class SafetyRouter(Safety):

llama_stack/core/routers/tool_runtime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
from ..routing_tables.toolgroups import ToolGroupsRoutingTable
2424

25-
logger = get_logger(name=__name__, category="core")
25+
logger = get_logger(name=__name__, category="core::routers")
2626

2727

2828
class ToolRuntimeRouter(ToolRuntime):

llama_stack/core/routers/vector_io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
from llama_stack.log import get_logger
3131
from llama_stack.providers.datatypes import HealthResponse, HealthStatus, RoutingTable
3232

33-
logger = get_logger(name=__name__, category="core")
33+
logger = get_logger(name=__name__, category="core::routers")
3434

3535

3636
class VectorIORouter(VectorIO):

0 commit comments

Comments
 (0)