日志中添加行号输出

This commit is contained in:
pengtao 2019-10-14 15:16:26 +08:00
parent c5bf89ee1d
commit 7ca2be49a1
2 changed files with 6 additions and 8 deletions

View File

@ -1,6 +1,4 @@
#### mp 合作方特征码接口
从NP系统获取外部特征码匹配中文用于数数展示
externalkey2gamelog
@ -8,10 +6,10 @@ externalkey2gamelog
#### gamelog appkey 写入接口
### gamelog appkey 写入接口
从接口获取appkey写入gamelog配置文件
内网调用:
http://10.10.3.16:6500/webapp/index.php?c=Ops&a=sync_log_conf
######内网调用
http://10.10.3.16:6500/webapp/index.php?c=Ops&a=sync_log_conf
######成功返回
{"errcode": 0, "errmsg": ""}

View File

@ -10,7 +10,7 @@ def define_logger(filename="/data/logs/aa.log", debug=True):
logger.setLevel(logging.ERROR)
# 设置输出格式
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
formatter = logging.Formatter('%(asctime)s - %(name)s - %(lineno)d - %(levelname)s - %(message)s')
# 设置日志文件处理器
fh = logging.FileHandler(filename)