Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

color log output #141

Closed
colemickens opened this issue Feb 14, 2024 · 4 comments
Closed

color log output #141

colemickens opened this issue Feb 14, 2024 · 4 comments

Comments

@colemickens
Copy link

Feature Request

I found a past issue about this, but I'm definitely not seeing color output in my process-compose windows.

For reading my application logs, the loglevel colors are very helpful, but lost when run through process-compose.

v0.80.0

@colemickens colemickens changed the title color output color log output Feb 14, 2024
@thenonameguy
Copy link
Contributor

This is usually because of:
#64

Most CLI apps disable emitting ANSI color codes when they notice they are not running in a TTY (to make piping stdout/stderr work).

Depending on the exact command, you can either:

  1. force ANSI color codes via a CLI flag (example: ls --color=always)
  2. Take a look at the workaround in the above ticket for socat wrapper to imitate a pseudo-terminal environment.

@colemickens
Copy link
Author

Hm, thanks for the tips, but shouldn't process-compose be able to roughly do what apps like tmux and zellij too? If I squint, process-compose is a glorified multiplexer after all.

@thenonameguy
Copy link
Contributor

thenonameguy commented Feb 14, 2024

It could and probably should :)
That's the point of ticket #64, where it turned out it's not a simple addition to do, therefore workarounds are needed for the time being.

IMO we can close this ticket as a duplicate and continue there.

@colemickens
Copy link
Author

Ack, thank you @thenonameguy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants