Unable to switch off terminal coloring on log messages
- 主要语言
- Python
- 星标
- 22.1k
- 派生
- 5.3k
- PR 合并指标
- PR 指标待抓取
描述
### Topic
Unable to switch off terminal coloring on log messages
### Relevant information
I cannot find a way to disable the ANSI escape chars added to log level to give them colors in terminal. Such as:
`2026-04-16 13:29:31,353 [main] ^[[34mINFO^[[0;39m c.z.h.HikariDataSource():79 - config-pool - Starting...`
This seems to be [hardcoded](https://github.com/airbytehq/airbyte-platform/blob/d4a13e2ce4321ba100bb8ce1a4fac3aab817df40/airbyte-commons-storage/src/main/kotlin/io/airbyte/commons/logging/logback/AirbytePlatformLogbackMessageLayout.kt#L120)
Did I miss something?
I'm working to ingest logs from Airbyte into Elastic stack. I've used `PLATFORM_LOG_FORMAT=json` to make (some) of the AIrbyte pods/containers log in json format.
However, some pods still log in text format, such as checks, discover, replication, etc. For those, I'll use some regex to extract them, and it would make it easier if the log level is clear without those ANSI chars for color.
Using airbyte `2.0.19`.
---
**Internal Tracking:** https://github.com/airbytehq/oncall/issues/11990
贡献指南
评估
这个 Issue 还没有评估数据。