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

No colorized output when using docker with tty: true #56

Open
ar-siddiqui opened this issue Oct 3, 2023 · 1 comment
Open

No colorized output when using docker with tty: true #56

ar-siddiqui opened this issue Oct 3, 2023 · 1 comment

Comments

@ar-siddiqui
Copy link

Using the following configuration in the docker setup and no colors are being printed. Running the application without docker prints color fine.
Docker compose has tty enabled.

	e.Use(middleware.LoggerWithConfig(middleware.LoggerConfig{
		Output: e.Logger.Output(),
	}))
@aldas
Copy link
Contributor

aldas commented Oct 4, 2023

If the same application has colors and does not have colors in docker, this is probably not Echo issue. Colors are enabled by this library https://github.com/mattn/go-colorable

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