flask logging 如何屏蔽终端配色字符?

问题遇到的现象和发生背景

flask 引入 logging 包后,flask 框架打印的日志包含了 终端颜色的字符。
如何屏蔽这些字符?

问题相关代码,请勿粘贴截图

logging 的配置:

logging.basicConfig(
        level=logging.INFO,
        format='%(asctime)s - [itsm.webapi:%(filename)s:%(lineno)d] - %(levelname)s: %(message)s'
    )
运行结果及报错内容

vscode 终端打印的日志:

Docker Env Error ? 
 * Serving Flask app "app" (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: on
2022-06-30 10:55:11,706 - [itsm.webapi:_internal.py:113] - INFO:  * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
2022-06-30 10:55:11,708 - [itsm.webapi:_internal.py:113] - INFO:  * Restarting with stat
Docker Env Error ? 
2022-06-30 10:55:12,553 - [itsm.webapi:_internal.py:113] - WARNING:  * Debugger is active!
2022-06-30 10:55:12,554 - [itsm.webapi:_internal.py:113] - INFO:  * Debugger PIN: 193-066-131
2022-06-30 10:55:48,279 - [itsm.webapi:app.py:73] - WARNING: 鉴权异常    b''    127.0.0.1    argument of type 'NoneType' is not iterable
2022-06-30 10:55:48,280 - [itsm.webapi:_internal.py:113] - INFO: 127.0.0.1 - - [30/Jun/2022 10:55:48] "GET / HTTP/1.1" 200 -

生产环境 kubernetes logs:

Docker Env ITSMDEBUG = 0
 * Serving Flask app "app" (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: on
2022-06-29 14:15:18,917 - [itsm.webapi:_internal.py:113] - INFO:  * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
2022-06-29 14:15:18,919 - [itsm.webapi:_internal.py:113] - INFO:  * Restarting with stat
2022-06-29 14:15:30,912 - [itsm.webapi:_internal.py:113] - WARNING:  * Debugger is active!
2022-06-29 14:15:30,914 - [itsm.webapi:_internal.py:113] - INFO:  * Debugger PIN: 729-477-316
2022-06-29 14:42:55,015 - [itsm.webapi:route.py:67] - INFO: Login Users: yk   Remote: 10.255.0.0
2022-06-29 14:42:56,420 - [itsm.webapi:_internal.py:113] - INFO: 10.255.0.0 - - [29/Jun/2022 14:42:56] "[37mPOST /Auth HTTP/1.0[0m" 200 -
2022-06-29 14:42:59,313 - [itsm.webapi:_internal.py:113] - INFO: 10.255.0.0 - - [29/Jun/2022 14:42:59] "[37mPOST /DealerADM HTTP/1.0[0m" 200 -
2022-06-29 14:43:06,018 - [itsm.webapi:_internal.py:113] - INFO: 10.255.0.0 - - [29/Jun/2022 14:43:06] "[37mPOST /vpncontrol/getekpuserlist HTTP/1.0[0m" 200 -

本地终端打印flask框架的时候没有 [37m ... [0m 这样的终端配色字符。
但是,到了 kubernetes docker 的 logs 就有这个问题了。