OnlineJudge/judge/logger.py
virusdefender d8966ed48a dev test
2015-11-28 20:32:49 +08:00

9 lines
283 B
Python

# coding=utf-8
import logging
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s [%(threadName)s:%(thread)d] [%(name)s:%(lineno)d] [%(module)s:%(funcName)s] [%(levelname)s]- %(message)s',
filename='log/judge.log')
logger = logging