Python: fix for logging setup (#2371)

* fix for logging setup

* typo fixes

* fix text
This commit is contained in:
Eduard van Valkenburg
2025-11-25 09:19:34 +01:00
committed by GitHub
Unverified
parent 2a4802eac3
commit 1b4103dce3
3 changed files with 26 additions and 7 deletions
@@ -4,12 +4,15 @@ import logging
from .exceptions import AgentFrameworkException
logging.basicConfig(
format="[%(asctime)s - %(pathname)s:%(lineno)d - %(levelname)s] %(message)s",
datefmt="%Y-%m-%d %H:%M:%S",
)
__all__ = ["get_logger", "setup_logging"]
__all__ = ["get_logger"]
def setup_logging() -> None:
"""Setup the logging configuration for the agent framework."""
logging.basicConfig(
format="[%(asctime)s - %(pathname)s:%(lineno)d - %(levelname)s] %(message)s",
datefmt="%Y-%m-%d %H:%M:%S",
)
def get_logger(name: str = "agent_framework") -> logging.Logger: