gommon icon indicating copy to clipboard operation
gommon copied to clipboard

No colorized output when using docker with `tty: true`

Open ar-siddiqui opened this issue 2 years ago • 1 comments

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(),
	}))

ar-siddiqui avatar Oct 03 '23 20:10 ar-siddiqui

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

aldas avatar Oct 04 '23 06:10 aldas