File size: 238 Bytes
79b95c3
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10

import logging

logging.basicConfig(
    format='%(asctime)s - %(filename)s - %(levelname)s - %(process)d - %(thread)d - %(message)s',
    datefmt="%Y-%m-%d %H:%M:%S",
)

logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)