stanley-king 2 年之前
父节点
当前提交
1b1110918c
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      plot/qreader.py

+ 3 - 1
plot/qreader.py

@@ -3,7 +3,9 @@ import signal as sig
 import sys,getopt
 import logging
 
-logging.basicConfig(filename='/var/www/html/data/log/qreader.log', level=logging.DEBUG)
+logging.basicConfig(filename='/var/www/html/data/log/qreader.log',
+                    format='%(levelname)10s  %(asctime)s  %(name)10s  %(message)s',
+                    level=logging.DEBUG)
 log = logging.getLogger('starter')
 
 def handle_sigterm(*args):