AI-Package-Doctor / src /utils.py
Yash030's picture
Intial Files
d96419c
Raw History Blame Contribute Delete
500 Bytes
"""
Utility functions for logging and helpers.
"""
import logging
import sys
def setup_logging(level=logging.INFO):
"""
Setup standard logging configuration.
Args:
level: Logging level (default: INFO)
"""
logging.basicConfig(
level=level,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s',
handlers=[
logging.StreamHandler(sys.stdout)
]
)
return logging.getLogger(__name__)
logger = setup_logging()