日志中添加行号输出
This commit is contained in:
parent
c5bf89ee1d
commit
7ca2be49a1
10
README.md
10
README.md
@ -1,6 +1,4 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#### mp 合作方特征码接口
|
#### mp 合作方特征码接口
|
||||||
从NP系统获取外部特征码,匹配中文用于数数展示
|
从NP系统获取外部特征码,匹配中文用于数数展示
|
||||||
externalkey2gamelog
|
externalkey2gamelog
|
||||||
@ -8,10 +6,10 @@ externalkey2gamelog
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### gamelog appkey 写入接口
|
||||||
|
|
||||||
#### gamelog appkey 写入接口
|
|
||||||
从接口获取appkey写入gamelog配置文件
|
从接口获取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": ""}
|
@ -10,7 +10,7 @@ def define_logger(filename="/data/logs/aa.log", debug=True):
|
|||||||
logger.setLevel(logging.ERROR)
|
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)
|
fh = logging.FileHandler(filename)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user