Unable to switch off terminal coloring on log messages
- Linguagem predominante
- Python
- Estrelas
- 22.1k
- Forks
- 5.4k
- Merge médio
- 5h
- PRs com merge (30d)
- 671
Descrição
### 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
Guia de contribuição
Avaliação
Esta issue ainda não foi avaliada.