Skip to content

Add pre-commit hook to check the loggerΒ #2865

@leseb

Description

@leseb

πŸš€ Describe the new functionality needed

We have our own logger implementation:

from llama_stack.log import get_logger
logger = get_logger(name=__name__, category="core")

Let's have a pre-commit hook that scans the code to make sure we use our logger and not do import logging.

πŸ’‘ Why is this needed? What if we don't build it?

Consistent codebase.

Other thoughts

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions