intelligent-pid / logger.py
msIntui
Add centralized logging configuration
d3ea93c
raw
history blame contribute delete
239 Bytes
import logging
# Configure logging
logging.basicConfig(
level=logging.INFO,
format='%(asctime)s - %(levelname)s - %(message)s'
)
def get_logger(name):
"""Get a logger with the given name"""
return logging.getLogger(name)