增加判题中的日志记录,没有测试

This commit is contained in:
virusdefender
2015-09-12 19:21:43 +08:00
parent ee9951abf1
commit 1dc0e8b742
11 changed files with 47 additions and 217 deletions

View File

@@ -0,0 +1,9 @@
# coding=utf-8
import logging
# 此处的 celery 代码如果在 docker 中运行需要将filename 修改为映射路径
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='/var/log/judge.log')
logger = logging