mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Python: fix for logging setup (#2371)
* fix for logging setup * typo fixes * fix text
This commit is contained in:
committed by
GitHub
Unverified
parent
2a4802eac3
commit
1b4103dce3
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user