Multi-File-Chatting / logger.py
Prathamesh Sable
Modulation and logging to console
0c9476c
raw
history blame contribute delete
243 Bytes
import logging
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s - %(levelname)s - %(message)s',
handlers=[logging.StreamHandler(),logging.FileHandler('logs.log')])
logger = logging.getLogger()