[GH-ISSUE #1778] NO_COLOR for logs? #1110

Closed
opened 2026-03-02 11:55:04 +03:00 by kerem · 3 comments
Owner

Originally created by @huyz on GitHub (Jul 24, 2025).
Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/1778

I ship my Docker logs through an observability pipeline, but they come out looking like this:

--> GET /api/health 200 0ms
2025-07-24T17:00:00.556Z info: [feed] Scheduling feed refreshing jobs

which makes things harder to parse.

Is there a NO_COLOR environment variable that I can set to disable the color in the logs?

Originally created by @huyz on GitHub (Jul 24, 2025). Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/1778 I ship my Docker logs through an observability pipeline, but they come out looking like this: ``` --> GET /api/health 200 0ms 2025-07-24T17:00:00.556Z info: [feed] Scheduling feed refreshing jobs ``` which makes things harder to parse. Is there a NO_COLOR environment variable that I can set to disable the color in the logs?
Author
Owner

@Eragos commented on GitHub (Jul 24, 2025):

Hey!

Looks like a terminal issue. The Escape codes are there.

�[32m200�[0m

xterm is working fine here.

Best, Michael

<!-- gh-comment-id:3114288405 --> @Eragos commented on GitHub (Jul 24, 2025): Hey! Looks like a terminal issue. The Escape codes are there. > `�[32m200�[0m` xterm is working fine here. Best, Michael
Author
Owner

@huyz commented on GitHub (Jul 25, 2025):

@Eragos I'm not asking for the ANSI escape codes to be rendered properly; I"m asking for ANSI escape codes to not be output at all. Since I'm not displaying the logs in a terminal, but actually ingesting them into an observability pipeline, ANSI escape codes should be taken out at the source (as in the common convention that a CLI app that detects that its stdout is being piped automatically turns off ANSI escape codes)

<!-- gh-comment-id:3116386336 --> @huyz commented on GitHub (Jul 25, 2025): @Eragos I'm not asking for the ANSI escape codes to be rendered properly; I"m asking for ANSI escape codes to not be output at all. Since I'm not displaying the logs in a terminal, but actually ingesting them into an observability pipeline, ANSI escape codes should be taken out at the source (as in the common convention that a CLI app that detects that its stdout is being piped automatically turns off ANSI escape codes)
Author
Owner

@huyz commented on GitHub (Jul 28, 2025):

Thanks @MohamedBassem !

<!-- gh-comment-id:3125492418 --> @huyz commented on GitHub (Jul 28, 2025): Thanks @MohamedBassem !
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#1110
No description provided.