在python中点击api时,我可以在日志记录中更改键/字段名吗?
点击API时的默认日志:在python中点击api时,我可以在日志记录中更改键/字段名吗?,python,flask,logging,flask-restful,Python,Flask,Logging,Flask Restful,点击API时的默认日志: { "written_at":"2021-04-27T07:37:29.022Z", "written_ts":1619509049022894000, "type":"request", ... "request_received_at":"2021-04-27T07:37:28.787Z",
{
"written_at":"2021-04-27T07:37:29.022Z",
"written_ts":1619509049022894000,
"type":"request",
...
"request_received_at":"2021-04-27T07:37:28.787Z",
"response_time_ms":235,
"response_status":200,
"response_size_b":38,
"response_content_type":"application/json",
"response_sent_at":"2021-04-27T07:37:29.022Z"
}
我想将日志的键/字段名从response\u status
更改为resp\u status
从正式文档开始:。