File size: 300 Bytes
ccc3228
 
 
 
 
 
 
 
3a6513c
ccc3228
 
 
1
2
3
4
5
6
7
8
9
10
11
12
# File: src/logger.py
import logging

logging.basicConfig(
    level=logging.INFO,
    format="%(asctime)s [%(levelname)s] %(message)s",
    handlers=[
        logging.StreamHandler(),
        logging.FileHandler("/tmp/cotienbot.log")  # Ghi log vào /tmp
    ]
)
logger = logging.getLogger(__name__)