File size: 239 Bytes
d3ea93c
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
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)