File size: 285 Bytes
79b95c3
 
 
 
9495a4f
8e0e4e9
79b95c3
8e0e4e9
79b95c3
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12

import logging

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

)

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