Skip to content

chore: replace use llama_stack logger#3060

Closed
Elbehery wants to merge 1 commit intollamastack:mainfrom
Elbehery:20250807_use_llama-stack_logger
Closed

chore: replace use llama_stack logger#3060
Elbehery wants to merge 1 commit intollamastack:mainfrom
Elbehery:20250807_use_llama-stack_logger

Conversation

@Elbehery
Copy link
Copy Markdown
Contributor

@Elbehery Elbehery commented Aug 7, 2025

What does this PR do?

This PR replaces default logger usage with custom llama_stack logger.

This PR aligns logging categories as per the package name, as well as reviews from initial PR

Replaces #2868
Part of #2865

cc @leseb @ashwinb @rhuss

Copy link
Copy Markdown
Collaborator

@cdoern cdoern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some comments on the category names here and a few other things

@Elbehery Elbehery force-pushed the 20250807_use_llama-stack_logger branch 2 times, most recently from 98db31f to d447738 Compare August 7, 2025 13:28
from .persistence import AgentInfo

logger = logging.getLogger()
logger = get_logger(name=__name__, category="llama")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this not agents category (like in the diff below) ? Where is this llama coming from ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, should be agents 👍🏽

fixing all this in a separate PR now :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have removed the changes which only renames the categories to #3065

the changes which replaces

logger = logging.getLogger(__name__)

with

logger = get_logger(name=__name__, category="")

Still in this PR

ptal 👍🏽

@Elbehery Elbehery force-pushed the 20250807_use_llama-stack_logger branch from d447738 to c5793f6 Compare August 7, 2025 17:19
Signed-off-by: Mustafa Elbehery <melbeher@redhat.com>
@Elbehery Elbehery force-pushed the 20250807_use_llama-stack_logger branch from c5793f6 to b5f98c0 Compare August 8, 2025 06:32
@Elbehery
Copy link
Copy Markdown
Contributor Author

Elbehery commented Aug 8, 2025

This change has been added in 348cf69

Closing

@Elbehery Elbehery closed this Aug 8, 2025
@Elbehery Elbehery deleted the 20250807_use_llama-stack_logger branch August 8, 2025 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants