Files
OnlineJudge/judge/judger_controller/logger.py
2015-09-12 19:21:43 +08:00

10 lines
382 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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