Copy 源日志:
2021-02-09 10:18:02 97082 /meetbill/butterfly/xlib/httpgateway.py:259 127.0.0.1 75DA11E45E4644EF GET /demo_api/ping cost:0.000455 stat:OK user:- talk: params:x=1 error_msg: res:
2021-02-09 10:19:51 97082 /meetbill/butterfly/xlib/httpgateway.py:259 127.0.0.1 549D3CA17B4182EE GET /demo_api/hello cost:0.001822 stat:OK user:- talk: params:str_info=meetbill error_msg: res:
2021-02-09 10:21:08 97082 /meetbill/butterfly/xlib/httpgateway.py:259 127.0.0.1 4E44BDEBD770F599 GET /demo_api/hello cost:0.000263 stat:ERR_BAD_PARAMS user:- talk: params:str_infox=meetbill error_msg:Param check failed res:
2021-02-09 10:22:10 97082 /meetbill/butterfly/xlib/httpgateway.py:259 127.0.0.1 8A348A0C7D9699D2 GET /demo_api/hellox cost:0.002694 stat:400 user:- talk: params: error_msg:API Not Found res:
转换后:
{'STAT': 'OK', 'RES': '', 'TIME': '10:18:02', 'PID': '97082', 'HOST': '127.0.0.1', 'METHOD': 'GET', 'REQID': '75DA11E45E4644EF', 'COST': '0.000455', 'PARAMS': 'x=1', 'USER': '-', 'CODE_INFO': '/meetbill/butterfly/xlib/httpgateway.py:259', 'DATE': '2021-02-09', 'PATH': '/demo_api/ping', 'ERROR_MSG': '', 'TALK': ''}
{'STAT': 'OK', 'RES': '', 'TIME': '10:19:51', 'PID': '97082', 'HOST': '127.0.0.1', 'METHOD': 'GET', 'REQID': '549D3CA17B4182EE', 'COST': '0.001822', 'PARAMS': 'str_info=meetbill', 'USER': '-', 'CODE_INFO': '/meetbill/butterfly/xlib/httpgateway.py:259', 'DATE': '2021-02-09', 'PATH': '/demo_api/hello', 'ERROR_MSG': '', 'TALK': ''}
{'STAT': 'ERR_BAD_PARAMS', 'RES': '', 'TIME': '10:21:08', 'PID': '97082', 'HOST': '127.0.0.1', 'METHOD': 'GET', 'REQID': '4E44BDEBD770F599', 'COST': '0.000263', 'PARAMS': 'str_infox=meetbill', 'USER': '-', 'CODE_INFO': '/meetbill/butterfly/xlib/httpgateway.py:259', 'DATE': '2021-02-09', 'PATH': '/demo_api/hello', 'ERROR_MSG': 'Param check failed', 'TALK': ''}
{'STAT': '400', 'RES': '', 'TIME': '10:22:10', 'PID': '97082', 'HOST': '127.0.0.1', 'METHOD': 'GET', 'REQID': '8A348A0C7D9699D2', 'COST': '0.002694', 'PARAMS': '', 'USER': '-', 'CODE_INFO': '/meetbill/butterfly/xlib/httpgateway.py:259', 'DATE': '2021-02-09', 'PATH': '/demo_api/hellox', 'ERROR_MSG': 'API Not Found', 'TALK': ''}